From 60c80ceee82e52a45624c14c633eaf39a23ad3fd Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 28 Mar 2024 05:35:39 -0400 Subject: [PATCH] More itembase refactor --- src/engine/objects/CharacterItemManager.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 7f585166..7d285e0f 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1210,14 +1210,10 @@ public class CharacterItemManager { return false; } - // Item must be in inventory to equip if (!this.inventory.contains(i) && this.absCharacter.getObjectType() != GameObjectType.Mob) return false; - // make sure player can equip item - if (i.getItemBase() == null) - return false; if (!ItemTemplate.canEquip(slot, this, absCharacter, i) && this.absCharacter.getObjectType() != GameObjectType.Mob) return false;