forked from MagicBane/Server
Start mobequip refactor
This commit is contained in:
@@ -94,7 +94,7 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
|
||||
NPC npc = NPC.getFromCache(npcID);
|
||||
CharacterItemManager man = null;
|
||||
ArrayList<Item> inventory = null;
|
||||
ArrayList<MobEquipment> sellInventory = null;
|
||||
ArrayList<Item> sellInventory = null;
|
||||
|
||||
if (npc != null) {
|
||||
man = npc.getCharItemManager();
|
||||
@@ -147,9 +147,9 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
|
||||
//add generic sell inventory from contract
|
||||
if (sellInventory != null) {
|
||||
|
||||
for (MobEquipment mobEquipment : sellInventory) {
|
||||
for (Item Item : sellInventory) {
|
||||
try {
|
||||
MobEquipment.serializeForVendor(mobEquipment, writer, sellPercent);
|
||||
Item.serializeForVendor(Item, writer, sellPercent);
|
||||
} catch (SerializationException se) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user