forked from MagicBane/Server
Start mobequip refactor
This commit is contained in:
@@ -36,7 +36,7 @@ public class ItemFactory {
|
||||
return;
|
||||
|
||||
int max = 20;
|
||||
CharacterItemManager itemManager = pc.getCharItemManager();
|
||||
CharacterItemManager itemManager = pc.charItemManager;
|
||||
|
||||
ItemTemplate template = ItemTemplate.templates.get(templateID);
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ItemFactory {
|
||||
if (forge == null)
|
||||
return null;
|
||||
|
||||
if (!npc.getCharItemManager().hasRoomInventory(template.item_wt)) {
|
||||
if (!npc.charItemManager.hasRoomInventory(template.item_wt)) {
|
||||
if (pc != null)
|
||||
ErrorPopupMsg.sendErrorPopup(pc, 21);
|
||||
return null;
|
||||
@@ -646,7 +646,7 @@ public class ItemFactory {
|
||||
if (template == null)
|
||||
return null;
|
||||
|
||||
if (!vendor.getCharItemManager().hasRoomInventory(template.item_wt)) {
|
||||
if (!vendor.charItemManager.hasRoomInventory(template.item_wt)) {
|
||||
|
||||
if (playerCharacter != null)
|
||||
ChatManager.chatSystemInfo(playerCharacter, vendor.getName() + " " + vendor.getContract().getName() + " Inventory is full.");
|
||||
|
||||
Reference in New Issue
Block a user