From 006202b6072464ffb5d52e2a52411f5bbaa5a1ad Mon Sep 17 00:00:00 2001 From: Roch Blonndiaux Date: Sun, 19 Mar 2023 15:53:42 +0100 Subject: [PATCH] Temporary fix Waiting for Gunging answer --- .../java/net/Indyuce/mmoitems/api/item/mmoitem/MMOItem.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/item/mmoitem/MMOItem.java b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/item/mmoitem/MMOItem.java index 604eee7e..19999457 100644 --- a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/item/mmoitem/MMOItem.java +++ b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/item/mmoitem/MMOItem.java @@ -10,7 +10,6 @@ import net.Indyuce.mmoitems.api.UpgradeTemplate; import net.Indyuce.mmoitems.api.item.ItemReference; import net.Indyuce.mmoitems.api.item.build.ItemStackBuilder; import net.Indyuce.mmoitems.api.util.MMOItemReforger; -import net.Indyuce.mmoitems.stat.Enchants; import net.Indyuce.mmoitems.stat.data.*; import net.Indyuce.mmoitems.stat.data.type.Mergeable; import net.Indyuce.mmoitems.stat.data.type.StatData; @@ -187,16 +186,14 @@ public class MMOItem implements ItemReference { * Enchantment data must never be clear and lack history. This is * the basis for when an item is 'old' */ - if (stat instanceof Enchants) { return mergeableStatHistory.getOrDefault(stat, StatHistory.from(this, stat, true)); } + //if (stat instanceof Enchants) { return mergeableStatHistory.getOrDefault(stat, StatHistory.from(this, stat, true)); } /* * Normal stat, just fetch. */ try { - // Well that REALLY should work return mergeableStatHistory.get(stat); - } catch (ClassCastException ignored) { return null; }