From 44ea113972cf8963b79454922511272518065b39 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 26 Jul 2017 18:25:55 +0200 Subject: [PATCH] Don't starve player to death if hungry --- mods/PLAYER/mcl_hunger/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_hunger/init.lua b/mods/PLAYER/mcl_hunger/init.lua index c17435ca5..1e9a3c14f 100644 --- a/mods/PLAYER/mcl_hunger/init.lua +++ b/mods/PLAYER/mcl_hunger/init.lua @@ -232,7 +232,7 @@ minetest.register_globalstep(function(dtime) mcl_hunger.update_exhaustion_hud(player, mcl_hunger.get_exhaustion(player)) elseif h == 0 then -- Damage hungry player down to 1 HP - if hp-1 >= 0 then + if hp-1 > 0 then player:set_hp(hp-1) end end