diff --git a/init.lua b/init.lua index 4a34684..31901e7 100644 --- a/init.lua +++ b/init.lua @@ -380,7 +380,8 @@ local function stamina_globaltimer(dtime) local name = player:get_player_name() -- damage player by 1 hp if saturation is < 2 (of 30) - if h < STAMINA_STARVE_LVL then + if h < STAMINA_STARVE_LVL + and hp > 0 then player:set_hp(hp - STAMINA_STARVE) end