mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2024-11-15 07:05:45 +01:00
Update ChestLinkStorage.java
When adding a chest that already contains an item, the display item now gets updated!
This commit is contained in:
parent
3d5c806116
commit
c71c8d6214
@ -51,6 +51,7 @@ public class ChestLinkStorage extends AbstractStorage implements ConfigurationSe
|
|||||||
Chest chest = (Chest) block.getState();
|
Chest chest = (Chest) block.getState();
|
||||||
getInventory().setContents(chest.getInventory().getContents());
|
getInventory().setContents(chest.getInventory().getContents());
|
||||||
chest.getInventory().clear();
|
chest.getInventory().clear();
|
||||||
|
updateDisplayItem();
|
||||||
}
|
}
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user