From 6a4e0e32cc1fe5aa6147ad6b56eccaab1a35b4e2 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 29 Feb 2024 22:06:48 -0600 Subject: [PATCH] hard set mine windows --- src/engine/objects/CharacterItemManager.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 557ab7dc..2759ce10 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1205,7 +1205,12 @@ public class CharacterItemManager { } private static void stripTempEnchants(Item i) { - i.clearEffects(); + //i.clearEffects(); + for (String name : i.getEffects().keySet()) { + Effect eff = i.getEffects().get(name); + if (eff.getDuration() > 0.1f) + i.endEffect(name); + } } //Used for buying MobEquipment from NPC