Browse Source

serialization work

combat-2
MagicBot 7 months ago
parent
commit
a86d90ef41
  1. 4
      src/engine/net/client/msg/ItemProductionMsg.java

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

@ -126,7 +126,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. item = Item.getFromCache(this.itemUUID); // Negative ID items not sent here. Deposit virtual item?
if (item != null) if (item != null)
Item.serializeForClientMsgWithoutSlot(item, writer); Item.serializeForClientMsgWithoutSlot(item, writer);
@ -252,7 +252,7 @@ public class ItemProductionMsg extends ClientNetMsg {
} }
writer.putString(toRoll.name); writer.putString(toRoll.name);
writer.putInt(GameObjectType.MobLoot.ordinal()); writer.putInt(toRoll.getObjectType().ordinal());
writer.putInt(this.itemUUID); writer.putInt(this.itemUUID);
writer.putInt(0); //items left to produce? writer.putInt(0); //items left to produce?

Loading…
Cancel
Save