mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
Add a setting to disable bones
This commit is contained in:
parent
a4823a4261
commit
6efe1a9a3c
1 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,8 @@ minetest.register_node("bones:bones", {
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_on_dieplayer(function(player)
|
minetest.register_on_dieplayer(function(player)
|
||||||
if minetest.setting_getbool("creative_mode") then
|
if minetest.setting_getbool("creative_mode") or
|
||||||
|
minetest.setting_getbool("disable_bones") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue