mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-06 13:54:25 -04:00
Merge 5b378b8f6c
into 676822d286
This commit is contained in:
commit
eb123a933c
1 changed files with 72 additions and 73 deletions
|
@ -153,11 +153,8 @@ local function may_replace(pos, player)
|
|||
return node_definition.buildable_to and not minetest.is_protected(pos, player:get_player_name())
|
||||
end
|
||||
|
||||
if not minetest.setting_getbool("disable_bones") and not minetest.setting_getbool("creative_mode") then
|
||||
minetest.register_on_dieplayer(function(player)
|
||||
if minetest.setting_getbool("creative_mode") then
|
||||
return
|
||||
end
|
||||
|
||||
local player_inv = player:get_inventory()
|
||||
if player_inv:is_empty("main") and
|
||||
player_inv:is_empty("craft") then
|
||||
|
@ -230,3 +227,5 @@ minetest.register_on_dieplayer(function(player)
|
|||
meta:set_string("infotext", player_name.."'s bones")
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue