Merge remote-tracking branch 'origin/master'

This commit is contained in:
Auxilor
2022-03-04 11:18:44 +00:00
2 changed files with 6 additions and 6 deletions

View File

@@ -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(

View File

@@ -1,2 +1,2 @@
version = 8.43.0
version = 8.43.1
plugin-name = EcoEnchants