mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Fix desync between server and client for personal chest. Fixes #5438
This commit is contained in:
4 files changed
+9
-13
No files matched your search
@@ -283,7 +283,7 @@ public class ClientProxy extends CommonProxy {
|
||||
ItemStack stack = entityplayer.getHeldItem(hand);
|
||||
|
||||
if (MachineType.get(stack) == MachineType.PERSONAL_CHEST) {
|
||||
InventoryPersonalChest inventory = new InventoryPersonalChest(entityplayer, hand);
|
||||
InventoryPersonalChest inventory = new InventoryPersonalChest(stack, hand);
|
||||
FMLClientHandler.instance()
|
||||
.displayGuiScreen(entityplayer, new GuiPersonalChest(entityplayer.inventory, inventory));
|
||||
entityplayer.openContainer.windowId = windowId;
|
||||
|
||||
Reference in new issue
Block a user