From 71274d25d0a68f416b88f1a6bbf6873b3a397988 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 22 Feb 2024 19:49:15 -0600 Subject: [PATCH] Resource Merchant --- src/engine/net/client/ClientMessagePump.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index 94417c3a..d4fbe7b3 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -1375,19 +1375,23 @@ public class ClientMessagePump implements NetMsgHandler { try { CharacterItemManager itemMan = sourcePlayer.getCharItemManager(); - if (itemMan == null) + if (itemMan == null) { + ChatManager.chatSystemError(sourcePlayer,"Item Man Null"); return; + } NPC npc = NPC.getFromCache(msg.getNPCID()); - if (npc == null) + if (npc == null) { + ChatManager.chatSystemError(sourcePlayer,"NPC Null"); return; - + } Item gold = itemMan.getGoldInventory(); - if (gold == null) + if (gold == null) { + ChatManager.chatSystemError(sourcePlayer,"Gold Null"); return; - + } Item buy = null; if (msg.getItemType() == GameObjectType.MobEquipment.ordinal()) {