From 3328ebe01070fa20b6afa3007c9ef640d0e4bd3e Mon Sep 17 00:00:00 2001 From: a-bad-dev <244852891+a-bad-dev@users.noreply.github.com> Date: Sun, 18 Jan 2026 21:29:12 -0400 Subject: [PATCH] don't attempt to heal dead players --- mods/game/autoheal/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/game/autoheal/init.lua b/mods/game/autoheal/init.lua index 874d51e..717461c 100644 --- a/mods/game/autoheal/init.lua +++ b/mods/game/autoheal/init.lua @@ -6,7 +6,7 @@ core.register_globalstep(function(dtime) if timer >= 10 then timer = 0 for _, player in pairs(core.get_connected_players()) do - if alive_players[player:get_player_name()] == "alive" then + if alive_players[player:get_player_name()] == "alive" and player:get_hp() > 0 then player:set_hp(math.min(player:get_hp() + 2, 20)) end end