mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-27 18:39:34 +01:00
Fix poison not reset after respawn
This commit is contained in:
parent
be79ade294
commit
90a28d3ec5
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue