Health is worth twice as much as hunger

This commit is contained in:
Sollace 2019-02-09 20:50:16 +02:00
parent a8f79d31b4
commit 5f94aa6d5b

View file

@ -26,7 +26,7 @@ public interface IPower<T extends IData> extends IKeyBind {
int food = (int)(player.getFoodStats().getFoodLevel() - foodSubtract);
if (food < 0) {
player.getFoodStats().addStats(-player.getFoodStats().getFoodLevel(), 0);
player.attackEntityFrom(DamageSource.MAGIC, -food);
player.attackEntityFrom(DamageSource.MAGIC, -food/2);
} else {
player.getFoodStats().addStats((int)-foodSubtract, 0);
}