From 84f9d54ec0a7ca4e9f9d52d0c19940601058aed7 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 18 Mar 2024 07:01:44 -0400 Subject: [PATCH] Unused junk removed --- src/engine/objects/Item.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index 7c9ad7ca..a563bcf2 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -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 { 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(); }