Browse Source

Madness; refactor out?

combat-2
MagicBot 8 months ago
parent
commit
d3fe643223
  1. 9
      src/engine/objects/Item.java

9
src/engine/objects/Item.java

@ -935,15 +935,6 @@ public class Item extends AbstractWorldObject {
} }
protected synchronized boolean equipItem(NPC npc, Enum.EquipSlotType slot) { protected synchronized boolean equipItem(NPC npc, Enum.EquipSlotType slot) {
if (!DbManager.ItemQueries.UPDATE_OWNER(this,
npc.getObjectUUID(), //UUID
//isNPC
//isPlayer
//isAccount
ItemContainerType.EQUIPPED,
slot)) //Slot
return false;
this.zeroItem(); this.zeroItem();
this.ownerID = npc.getObjectUUID(); this.ownerID = npc.getObjectUUID();
this.ownerType = OwnerType.Npc; this.ownerType = OwnerType.Npc;

Loading…
Cancel
Save