Fix double chests

This commit is contained in:
Ilya 2022-02-11 16:23:50 +03:00
parent 0cdd12669f
commit b3e0cf3949

View File

@ -148,7 +148,7 @@ public class WorldListener implements Listener {
if(chests > 1) { if(chests > 1) {
isMovable = false; isMovable = false;
break; break;
} else { } else if(chests == 1) {
if(b.getType() == Material.CHEST) { if(b.getType() == Material.CHEST) {
Chest chest = (Chest)b.getState(); Chest chest = (Chest)b.getState();
if(chest.getInventory() instanceof DoubleChestInventory) { if(chest.getInventory() instanceof DoubleChestInventory) {