Browse Source

Serialization updated. Collection adds slot.

combat-2
MagicBot 8 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 {
writer.put((byte) 1); writer.put((byte) 1);
Item item; Item item;
item = Item.getFromCache(this.itemUUID); // If sent to rolling window adds a new slot.
if (this.itemUUID > 0)
item = Item.getFromCache(this.itemUUID);
else
item = ForgeManager.inMemoryItemLookup.get(this.itemUUID);
if (item == null) if (item == null)
Logger.error("Null item serialized"); Logger.error("Null item serialized");

Loading…
Cancel
Save