Resource Merchant

This commit is contained in:
2024-02-22 19:49:15 -06:00
parent 9d75116790
commit 71274d25d0
+9 -5
View File
@@ -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()) {