Fix Inventory List Crash (#71)

This commit is contained in:
Julia authored and GitHub committed 2025-09-24 17:29:33 +02:00
1 parent c6815bebdf
commit f324cb53db
1 file changed
+4
@@ -52,6 +52,10 @@ public class ContainerCraftGUI extends Container {
if (!window.isServer()) return;
// WARNING: The client side expects `ArrayList` and the server expects `ListMap`
inventoryItemStacks = new ListMap<>();
inventorySlots = new ListMap<>();
IInventory entityInventory = window.getInventory();
IMachine machine = Machine.getMachine(entityInventory);
if (machine == null) return;