Browse Source

Serialization updated. Collection adds slot.

combat-2
MagicBot 7 months ago
parent
commit
862e75cd4c
  1. 6
      src/engine/net/client/msg/ItemProductionMsg.java

6
src/engine/net/client/msg/ItemProductionMsg.java

@ -127,11 +127,7 @@ public class ItemProductionMsg extends ClientNetMsg { @@ -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");

Loading…
Cancel
Save