1
0
mirror of git://repo.or.cz/minetest_hbhunger.git synced 2024-12-23 16:30:20 +01:00

Fix crash when poisoned player leaves server

This commit is contained in:
Wuzzy 2016-08-05 15:36:31 +02:00
parent 30b0b41e3e
commit abbf003145

View File

@ -50,6 +50,10 @@ end
-- Poison player -- Poison player
local function poisenp(tick, time, time_left, 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 time_left = time_left + tick
if time_left < time then if time_left < time then
minetest.after(tick, poisenp, tick, time, time_left, player) minetest.after(tick, poisenp, tick, time, time_left, player)