From 862e75cd4c10215055cec2f9f382aa91e685f321 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 16 Apr 2024 14:01:46 -0400 Subject: [PATCH] Serialization updated. Collection adds slot. --- src/engine/net/client/msg/ItemProductionMsg.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/engine/net/client/msg/ItemProductionMsg.java b/src/engine/net/client/msg/ItemProductionMsg.java index 7d1ae595..148fed95 100644 --- a/src/engine/net/client/msg/ItemProductionMsg.java +++ b/src/engine/net/client/msg/ItemProductionMsg.java @@ -127,11 +127,7 @@ public class ItemProductionMsg extends ClientNetMsg { writer.put((byte) 1); Item item; - - if (this.itemUUID > 0) - item = Item.getFromCache(this.itemUUID); - else - item = ForgeManager.inMemoryItemLookup.get(this.itemUUID); + item = Item.getFromCache(this.itemUUID); // If sent to rolling window adds a new slot. if (item == null) Logger.error("Null item serialized");