mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-06 05:44:26 -04:00
Merge f678d6a06d
into f80fafbcfb
This commit is contained in:
commit
334550b01d
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,7 @@ bones.bones_formspec =
|
|||
|
||||
local share_bones_time = tonumber(minetest.setting_get("share_bones_time") or 1200)
|
||||
local share_bones_time_early = tonumber(minetest.setting_get("share_bones_time_early") or (share_bones_time/4))
|
||||
local disable_bones = minetest.setting_get("disable_bones") or false
|
||||
|
||||
minetest.register_node("bones:bones", {
|
||||
description = "Bones",
|
||||
|
@ -153,6 +154,8 @@ local function may_replace(pos, player)
|
|||
return node_definition.buildable_to and not minetest.is_protected(pos, player:get_player_name())
|
||||
end
|
||||
|
||||
|
||||
if disable_bones then
|
||||
minetest.register_on_dieplayer(function(player)
|
||||
if minetest.setting_getbool("creative_mode") then
|
||||
return
|
||||
|
@ -230,3 +233,4 @@ 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