Browse Source

Should not be filtering items in production.

master
MagicBot 1 year ago
parent
commit
27defa21c2
  1. 11
      src/engine/net/client/msg/ManageNPCMsg.java

11
src/engine/net/client/msg/ManageNPCMsg.java

@ -430,19 +430,10 @@ public class ManageNPCMsg extends ClientNetMsg { @@ -430,19 +430,10 @@ public class ManageNPCMsg extends ClientNetMsg {
}
ArrayList<MobLoot> itemList = npc.getRolling();
if (itemList.isEmpty())
writer.putInt(0);
else {
if (itemList.size() < npc.getRank())
writer.putInt(itemList.size());
else
writer.putInt(npc.getRank());
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 { @@ -495,7 +486,7 @@ public class ManageNPCMsg extends ClientNetMsg {
writer.putString(i.getCustomName());
}
}
writer.putInt(0);
writer.putInt(0);

Loading…
Cancel
Save