mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Fix #1795 (Don't remove Pumpkin HUD when it is removed on death if keepinventory is enabled)
This commit is contained in:
parent
4324e97db0
commit
c350b5158b
@ -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)
|
||||||
|
if minetest.settings:get("mcl_keepInventory") ~= "true" then
|
||||||
remove_pumpkin_hud(player)
|
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 New Issue
Block a user