From a8ba5ae62b7f9737d5e2ab6b891f49001c3b266f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 24 Mar 2024 09:39:38 -0400 Subject: [PATCH] More accurate than BakedInStats --- src/engine/objects/Item.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index 575500c7..6882ccf4 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -76,8 +76,7 @@ public class Item extends AbstractWorldObject { this.numberOfItems = 1; this.flags.addAll(this.template.item_flags); - loadEnchantments(); - applyBakedInStats(); + loadTemplateEnchantments(); } /** @@ -975,7 +974,7 @@ public class Item extends AbstractWorldObject { return this.magicValue; } - private void applyBakedInStats() { + private void loadTemplateEnchantments() { EffectsBase effect; @@ -1059,7 +1058,7 @@ public class Item extends AbstractWorldObject { @Override public void runAfterLoad() { loadEnchantments(); - applyBakedInStats(); + loadTemplateEnchantments(); }