Update ChestLinkStorage.java

When adding a chest that already contains an item, the display item now gets updated!
This commit is contained in:
jameslfc19 2020-07-14 19:26:32 +01:00
parent 3d5c806116
commit c71c8d6214

View File

@ -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();
} }