mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-17 22:07:33 +01:00
Fix neighbour finding
This commit is contained in:
parent
775dbe5afe
commit
c8e85856a1
@ -99,10 +99,11 @@ public class uBlock {
|
||||
for (BlockFace blockFace : CHEST_EXTENSION_FACES) {
|
||||
Block neighborBlock = block.getRelative(blockFace);
|
||||
|
||||
if (BlockUtil.isChest(neighborBlock)) {
|
||||
if (neighborBlock.getType() == block.getType()) {
|
||||
return (Chest) neighborBlock.getState();
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user