Not all bisected blocks are double blocks

This commit is contained in:
Brokkonaut
2018-08-03 01:03:07 +02:00
parent 39a0fbeafa
commit e98910615f

View File

@ -221,7 +221,7 @@ public class WorldEditor implements Runnable {
bed2.setPart(bed.getPart() == Part.HEAD ? Part.FOOT : Part.HEAD); bed2.setPart(bed.getPart() == Part.HEAD ? Part.FOOT : Part.HEAD);
secBlock.setBlockData(bed2); secBlock.setBlockData(bed2);
} }
} else if (newData instanceof Bisected) { } else if (curtype == Material.IRON_DOOR || BukkitUtils.isWoodenDoor(curtype) || BukkitUtils.isDoublePlant(curtype)) {
final Bisected firstPart = (Bisected) newData; final Bisected firstPart = (Bisected) newData;
final Block secBlock = block.getRelative(firstPart.getHalf() == Half.TOP ? BlockFace.DOWN : BlockFace.UP); final Block secBlock = block.getRelative(firstPart.getHalf() == Half.TOP ? BlockFace.DOWN : BlockFace.UP);
if (secBlock.isEmpty()) { if (secBlock.isEmpty()) {