From 13fb532902593bc6a17c789ffc61ca48900b268d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 16 Aug 2023 11:16:24 -0400 Subject: [PATCH] Bugfix for vendor window with no items. --- src/engine/net/client/msg/ManageNPCMsg.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/net/client/msg/ManageNPCMsg.java b/src/engine/net/client/msg/ManageNPCMsg.java index 03caea83..8772b7c0 100644 --- a/src/engine/net/client/msg/ManageNPCMsg.java +++ b/src/engine/net/client/msg/ManageNPCMsg.java @@ -401,7 +401,7 @@ public class ManageNPCMsg extends ClientNetMsg { } else { - if (Contract.NoSlots(npc.getContract())) + if (npc.getCanRoll().isEmpty()) writer.putInt(0); else writer.putInt(npc.getRank()); //vendor slots