mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 10:52:25 +01:00
Fix poison not reset after respawn
This commit is contained in:
parent
be79ade294
commit
90a28d3ec5
@ -182,8 +182,10 @@ minetest.register_on_joinplayer(function(player)
|
||||
end)
|
||||
|
||||
minetest.register_on_respawnplayer(function(player)
|
||||
-- reset hunger (and save)
|
||||
-- reset hunger, related values and poison
|
||||
local name = player:get_player_name()
|
||||
|
||||
mcl_hunger.stop_poison(player)
|
||||
mcl_hunger.last_eat[name] = -1
|
||||
|
||||
local h, s, e = 20, mcl_hunger.SATURATION_INIT, 0
|
||||
|
Loading…
Reference in New Issue
Block a user