diff options
-rw-r--r-- | hunger.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -50,6 +50,10 @@ end -- Poison player local function poisenp(tick, time, time_left, player) + -- First check if player is still there + if not player:is_player() then + return + end time_left = time_left + tick if time_left < time then minetest.after(tick, poisenp, tick, time, time_left, player) |