mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 14:01:07 +01:00
Merge pull request 'Fix #1795 (Don't remove Pumpkin HUD when it is removed on death if keepinventory is enabled)' (#1796) from pumpkin_hud into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1796
This commit is contained in:
commit
64d3a28578
1 changed files with 3 additions and 1 deletions
|
@ -162,7 +162,9 @@ if minetest.get_modpath("mcl_armor") then
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
minetest.register_on_dieplayer(function(player)
|
minetest.register_on_dieplayer(function(player)
|
||||||
remove_pumpkin_hud(player)
|
if not minetest.settings:get_bool("mcl_keepInventory") then
|
||||||
|
remove_pumpkin_hud(player)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
pumpkin_hud[player] = nil
|
pumpkin_hud[player] = nil
|
||||||
|
|
Loading…
Reference in a new issue