From ecc14fc3afe27b7f3dfae6bbecdae4eaa07f224d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 23 Mar 2024 09:25:49 -0400 Subject: [PATCH] Setting slot.NONE when moving to inventory --- src/engine/objects/Item.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index 0ad9f5c1..d69f897c 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -874,6 +874,7 @@ public class Item extends AbstractWorldObject { this.ownerID = npc.getObjectUUID(); this.ownerType = OwnerType.Npc; this.containerType = Enum.ItemContainerType.INVENTORY; + this.equipSlot = EquipSlotType.NONE; return true; } @@ -891,6 +892,7 @@ public class Item extends AbstractWorldObject { this.ownerID = 0; this.ownerType = null; this.containerType = Enum.ItemContainerType.INVENTORY; + this.equipSlot = EquipSlotType.NONE; return true; } @@ -908,6 +910,7 @@ public class Item extends AbstractWorldObject { this.ownerID = pc.getObjectUUID(); this.ownerType = OwnerType.PlayerCharacter; this.containerType = Enum.ItemContainerType.BANK; + this.equipSlot = EquipSlotType.NONE; return true; } @@ -925,6 +928,7 @@ public class Item extends AbstractWorldObject { this.ownerID = npc.getObjectUUID(); this.ownerType = OwnerType.Npc; this.containerType = Enum.ItemContainerType.BANK; + this.equipSlot = EquipSlotType.NONE; return true; } @@ -942,6 +946,7 @@ public class Item extends AbstractWorldObject { this.ownerID = a.getObjectUUID(); this.ownerType = OwnerType.Account; this.containerType = Enum.ItemContainerType.VAULT; + this.equipSlot = EquipSlotType.NONE; return true; }