reset poisoned

this resets poisoned flag incae player signs out while poisoned and comes back only to find they never heal.
This commit is contained in:
tenplus1 2018-02-22 19:29:26 +00:00 committed by sofar
parent dad5184d37
commit 743fcec49a

View File

@ -359,6 +359,8 @@ if minetest.setting_getbool("enable_damage") and minetest.is_yes(minetest.settin
max = 0,
})
player:set_attribute("stamina:hud_id", id)
-- reset poisoned
player:set_attribute("stamina:poisoned", "no")
end)
minetest.register_globalstep(stamina_globaltimer)