forked from MagicBane/Server
Serialization work
This commit is contained in:
@@ -17,7 +17,6 @@ import engine.net.*;
|
||||
import engine.objects.Building;
|
||||
import engine.objects.Item;
|
||||
import engine.objects.NPC;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
@@ -129,9 +128,7 @@ public class ItemProductionMsg extends ClientNetMsg {
|
||||
Item item;
|
||||
item = Item.getFromCache(this.itemUUID); // If sent to rolling window adds a new slot.
|
||||
|
||||
if (item == null)
|
||||
Logger.error("Null item serialized");
|
||||
else
|
||||
if (item != null)
|
||||
Item.serializeForClientMsgWithoutSlot(item, writer);
|
||||
|
||||
writer.putInt(building.getStrongboxValue());
|
||||
@@ -151,9 +148,7 @@ public class ItemProductionMsg extends ClientNetMsg {
|
||||
else
|
||||
item = ForgeManager.inMemoryItemLookup.get(this.itemUUID);
|
||||
|
||||
if (item == null)
|
||||
Logger.error("Null item serialized");
|
||||
else
|
||||
if (item != null)
|
||||
Item.serializeForClientMsgWithoutSlot(item, writer);
|
||||
|
||||
writer.putInt(building.getStrongboxValue());
|
||||
|
||||
Reference in New Issue
Block a user