Fixed healtha buse bug
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user