Fix neighbour finding

This commit is contained in:
Acrobot 2013-03-23 14:08:21 +01:00
parent 775dbe5afe
commit c8e85856a1

View File

@ -99,10 +99,11 @@ public class uBlock {
for (BlockFace blockFace : CHEST_EXTENSION_FACES) { for (BlockFace blockFace : CHEST_EXTENSION_FACES) {
Block neighborBlock = block.getRelative(blockFace); Block neighborBlock = block.getRelative(blockFace);
if (BlockUtil.isChest(neighborBlock)) { if (neighborBlock.getType() == block.getType()) {
return (Chest) neighborBlock.getState(); return (Chest) neighborBlock.getState();
} }
} }
return null; return null;
} }