Fix double chests
This commit is contained in:
parent
0cdd12669f
commit
b3e0cf3949
@ -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) {
|
||||||
|
Reference in New Issue
Block a user