mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Don't starve player to death if hungry
This commit is contained in:
parent
f7031e8b6f
commit
44ea113972
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
mcl_hunger.update_exhaustion_hud(player, mcl_hunger.get_exhaustion(player))
|
mcl_hunger.update_exhaustion_hud(player, mcl_hunger.get_exhaustion(player))
|
||||||
elseif h == 0 then
|
elseif h == 0 then
|
||||||
-- Damage hungry player down to 1 HP
|
-- Damage hungry player down to 1 HP
|
||||||
if hp-1 >= 0 then
|
if hp-1 > 0 then
|
||||||
player:set_hp(hp-1)
|
player:set_hp(hp-1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue