Start mobequip refactor
This commit is contained in:
@@ -63,14 +63,14 @@ public class BuyFromNPCMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
Item buy = null;
|
||||
|
||||
if (buyFromNPCMsg.getItemType() == Enum.GameObjectType.MobEquipment.ordinal()) {
|
||||
if (buyFromNPCMsg.getItemType() == Enum.GameObjectType.Item.ordinal()) {
|
||||
|
||||
ArrayList<MobEquipment> sellInventory = npc.getContract().getSellInventory();
|
||||
ArrayList<Item> sellInventory = npc.getContract().getSellInventory();
|
||||
|
||||
if (sellInventory == null)
|
||||
return true;
|
||||
|
||||
for (MobEquipment me : sellInventory) {
|
||||
for (Item me : sellInventory) {
|
||||
|
||||
if (me.getObjectUUID() == buyFromNPCMsg.getItemID()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user