From 633312af797d1a9ac8efa4681bedd570405b86a2 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Thu, 3 Mar 2022 20:58:29 +0000 Subject: [PATCH 1/2] Fixed prosperity bug --- .../enchantments/ecoenchants/special/Prosperity.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 bd00ebdc..6cdb625a 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 @@ -37,20 +37,20 @@ public class Prosperity extends EcoEnchant { assert inst != null; - inst.setBaseValue(inst.getDefaultValue()); - if (this.getDisabledWorlds().contains(player.getWorld())) { points = 0; } - inst.removeModifier(modifier); - - if (player.getHealth() >= inst.getValue()) { + if (player.getHealth() >= inst.getValue() && player.getHealth() >= 20) { this.getPlugin().getScheduler().runLater(() -> { player.setHealth(player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue()); }, 1); } + inst.setBaseValue(inst.getDefaultValue()); + + inst.removeModifier(modifier); + if (points > 0) { inst.addModifier( new AttributeModifier( From a307c332c6111b09de8436767bfe9012b3a7def5 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Thu, 3 Mar 2022 20:58:39 +0000 Subject: [PATCH 2/2] Updated to 8.43.1 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 3866992b..26d6a4b3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version = 8.43.0 +version = 8.43.1 plugin-name = EcoEnchants \ No newline at end of file