From 7f3873b63fbf6a6f7cee5d5594deb8807425fe8d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 15 Apr 2024 12:23:01 -0400 Subject: [PATCH] fail fast on null --- src/engine/net/client/msg/ItemProductionMsg.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/net/client/msg/ItemProductionMsg.java b/src/engine/net/client/msg/ItemProductionMsg.java index 4651ffba..8e7a4d8e 100644 --- a/src/engine/net/client/msg/ItemProductionMsg.java +++ b/src/engine/net/client/msg/ItemProductionMsg.java @@ -145,8 +145,7 @@ public class ItemProductionMsg extends ClientNetMsg { else item = ForgeManager.inMemoryItemLookup.get(this.itemUUID); - if (item != null) - Item.serializeForClientMsgWithoutSlot(item, writer); + Item.serializeForClientMsgWithoutSlot(item, writer); writer.putInt(building.getStrongboxValue()); writer.putInt(0);