mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Health is worth twice as much as hunger
This commit is contained in:
parent
a8f79d31b4
commit
5f94aa6d5b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue