From 8b98a3f2a151903e7ad52e0962f8daff7477ea05 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 15 Mar 2024 11:50:36 -0400 Subject: [PATCH] More itembase refactor work --- src/engine/net/client/msg/ManageNPCMsg.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/net/client/msg/ManageNPCMsg.java b/src/engine/net/client/msg/ManageNPCMsg.java index 30887bb3..699320a7 100644 --- a/src/engine/net/client/msg/ManageNPCMsg.java +++ b/src/engine/net/client/msg/ManageNPCMsg.java @@ -421,12 +421,12 @@ public class ManageNPCMsg extends ClientNetMsg { //Begin Item list for creation. writer.putInt(rollableSet.size()); - for (int ib : rollableSet) { - ItemBase item = ItemBase.getItemBase(ib); - ItemTemplate template = ItemTemplate.itemTemplates.get(ib); + for (int templateID : rollableSet) { + ItemBase item = ItemBase.getItemBase(templateID); + ItemTemplate template = ItemTemplate.itemTemplates.get(templateID); writer.put((byte) 1); writer.putInt(0); - writer.putInt(ib); //itemID + writer.putInt(templateID); //itemID writer.putInt(template.item_value); writer.putInt(600); writer.put((byte) 1);