mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Fixed healtha buse bug
This commit is contained in:
parent
662f4ffc4c
commit
8e96b7d613
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user