From 324a6362f7636729ac014c2fc1dfaf22cc88ff14 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 6 Mar 2021 19:20:20 +0000 Subject: [PATCH] Fixed Thrive and Prosperity for players wearing armor from older versions --- .../ecoenchants/enchantments/ecoenchants/normal/Thrive.java | 2 ++ .../enchantments/ecoenchants/special/Prosperity.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Thrive.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Thrive.java index 5dfb13f2..4257189d 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Thrive.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Thrive.java @@ -34,6 +34,8 @@ public class Thrive extends EcoEnchant { assert inst != null; + inst.setBaseValue(inst.getDefaultValue()); + if (this.getDisabledWorlds().contains(player.getWorld())) { points = 0; } diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Prosperity.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Prosperity.java index bad9541a..f3a7385e 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Prosperity.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/special/Prosperity.java @@ -34,6 +34,8 @@ public class Prosperity extends EcoEnchant { assert inst != null; + inst.setBaseValue(inst.getDefaultValue()); + if (this.getDisabledWorlds().contains(player.getWorld())) { points = 0; }