From 1a3bd02bad26ecb6f14edc22e4a05cd4bf9f57fe Mon Sep 17 00:00:00 2001 From: IonicCheese Date: Wed, 10 Dec 2025 00:04:21 -0800 Subject: [PATCH] Fix stupid mistake --- mods/game/main/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/game/main/init.lua b/mods/game/main/init.lua index f60ade3..4a54c79 100644 --- a/mods/game/main/init.lua +++ b/mods/game/main/init.lua @@ -322,7 +322,7 @@ core.register_globalstep(function(dtime) if timer >= 10 then timer = 0 for _, player in pairs(core.get_connected_players()) do - if alive_players[name] == "alive" then + if alive_players[player:get_player_name()] == "alive" then player:set_hp(math.min(player:get_hp() + 2, 20)) end end