Fixed healtha buse bug

This commit is contained in:
Auxilor 2022-06-05 10:36:59 +01:00
parent 662f4ffc4c
commit 8e96b7d613

View File

@ -41,12 +41,15 @@ public class Prosperity extends EcoEnchant {
points = 0;
}
/*
Fixes health abuse bug
if (player.getHealth() >= inst.getValue() && player.getHealth() >= 20) {
this.getPlugin().getScheduler().runLater(() -> {
player.setHealth(Math.min(player.getHealth(), player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue()));
}, 1);
}
*/
inst.setBaseValue(inst.getDefaultValue());