mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-22 00:21:28 +01:00
Fixed thrive having the same bug as preservation
This commit is contained in:
parent
1cbd6038c0
commit
b08403676f
@ -37,20 +37,20 @@ public class Thrive 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()) {
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user