Start mobequip refactor
This commit is contained in:
@@ -60,7 +60,7 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
} else if (repairMsg.getMsgType() == 0) { //Request RepairObject
|
||||
|
||||
CharacterItemManager itemMan = player.getCharItemManager();
|
||||
CharacterItemManager itemMan = player.charItemManager;
|
||||
|
||||
if (itemMan == null)
|
||||
return true;
|
||||
@@ -116,10 +116,10 @@ public class RepairMsgHandler extends AbstractClientMsgHandler {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (player.getCharItemManager().getGoldInventory().getNumOfItems() - cost < 0)
|
||||
if (player.charItemManager.getGoldInventory().getNumOfItems() - cost < 0)
|
||||
return true;
|
||||
|
||||
if (player.getCharItemManager().getGoldInventory().getNumOfItems() - cost > MBServerStatics.PLAYER_GOLD_LIMIT)
|
||||
if (player.charItemManager.getGoldInventory().getNumOfItems() - cost > MBServerStatics.PLAYER_GOLD_LIMIT)
|
||||
return true;
|
||||
|
||||
if (!itemMan.buyFromNPC(building, cost, cost)) {
|
||||
|
||||
Reference in New Issue
Block a user