Fix chests recognising incorrect neighbors

This commit is contained in:
Acrobot 2013-09-28 23:47:36 +02:00
parent 7d4b355e64
commit f2352d2e42
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ public class uBlock {
for (BlockFace chestFace : NEIGHBOR_FACES) {
Block relative = chestBlock.getRelative(chestFace);
if (BlockUtil.isChest(relative)) {
if (relative.getType() == chestBlock.getType()) {
return (Chest) relative.getState();
}
}