From 27defa21c21ae76e34701db4cfcfc9de19773334 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 15 Aug 2023 15:17:12 -0400 Subject: [PATCH] Should not be filtering items in production. --- src/engine/net/client/msg/ManageNPCMsg.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/engine/net/client/msg/ManageNPCMsg.java b/src/engine/net/client/msg/ManageNPCMsg.java index 64df0293..2a99e252 100644 --- a/src/engine/net/client/msg/ManageNPCMsg.java +++ b/src/engine/net/client/msg/ManageNPCMsg.java @@ -430,19 +430,10 @@ public class ManageNPCMsg extends ClientNetMsg { } ArrayList itemList = npc.getRolling(); - if (itemList.isEmpty()) - writer.putInt(0); - else { - if (itemList.size() < npc.getRank()) - writer.putInt(itemList.size()); - else - writer.putInt(npc.getRank()); + writer.putInt(itemList.size()); for (Item i : itemList) { - if (itemList.indexOf(i) >= npc.getRank()) - break; - ItemBase ib = i.getItemBase(); writer.put((byte) 0); // ? Unknown45 @@ -495,7 +486,7 @@ public class ManageNPCMsg extends ClientNetMsg { writer.putString(i.getCustomName()); } - } + writer.putInt(0); writer.putInt(0);