From a86d90ef414ecf2558fa58391a65a28ce78010cb Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 16 Apr 2024 14:55:03 -0400 Subject: [PATCH] serialization work --- src/engine/net/client/msg/ItemProductionMsg.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/msg/ItemProductionMsg.java b/src/engine/net/client/msg/ItemProductionMsg.java index 565d441a..bc813d64 100644 --- a/src/engine/net/client/msg/ItemProductionMsg.java +++ b/src/engine/net/client/msg/ItemProductionMsg.java @@ -126,7 +126,7 @@ public class ItemProductionMsg extends ClientNetMsg { writer.put((byte) 1); 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) Item.serializeForClientMsgWithoutSlot(item, writer); @@ -252,7 +252,7 @@ public class ItemProductionMsg extends ClientNetMsg { } writer.putString(toRoll.name); - writer.putInt(GameObjectType.MobLoot.ordinal()); + writer.putInt(toRoll.getObjectType().ordinal()); writer.putInt(this.itemUUID); writer.putInt(0); //items left to produce?