mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 18:45:31 +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