Browse Source

Unused junk removed

combat-2
MagicBot 8 months ago
parent
commit
84f9d54ec0
  1. 4
      src/engine/objects/Item.java

4
src/engine/objects/Item.java

@ -53,7 +53,6 @@ public class Item extends AbstractWorldObject { @@ -53,7 +53,6 @@ public class Item extends AbstractWorldObject {
private int value;
public OwnerType ownerType;
public int templateID;
private AbstractWorldObject lastOwner;
private long dateToUpgrade;
private int magicValue;
public ItemTemplate template;
@ -840,9 +839,8 @@ public class Item extends AbstractWorldObject { @@ -840,9 +839,8 @@ public class Item extends AbstractWorldObject {
DbManager.ItemQueries.UPDATE_OWNER(this, 0, false, false, false, ItemContainerType.NONE, 0);
this.zeroItem();
//TODO do we want to delete the item here?
this.lastOwner = null;
//cleanup item from server.
this.removeFromCache();
}

Loading…
Cancel
Save