mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 09:59:33 +01:00
Add “keep inventory” setting
This commit is contained in:
parent
ca49e4fcd0
commit
900b840762
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
--if minetest.setting_get("keepInventory") == false then
|
||||
if minetest.setting_getbool("mcl_keep_inventory_on_death") == false then
|
||||
minetest.register_on_dieplayer(function(player)
|
||||
local inv = player:get_inventory()
|
||||
local pos = player:getpos()
|
||||
|
@ -17,4 +17,4 @@
|
|||
end
|
||||
end
|
||||
end)
|
||||
--end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue