add statues to underworld mapgen

This commit is contained in:
FaceDeer
2020-11-10 21:04:11 -07:00
parent 14fcdd30c6
commit 92d9cb1399
4 changed files with 32 additions and 2 deletions

View File

@ -13,7 +13,10 @@ if minetest.get_modpath("hunter_statue") and df_underworld_items.config.underwor
groups = {hunter_statue = 1, falling_node = 1, immortal = 1},
other_overrides = {
can_dig = function(pos, player)
return minetest.check_player_privs(player, "server")
if player then
return minetest.check_player_privs(player, "server")
end
return false
end,
}
})

View File

@ -3,7 +3,10 @@ local S = df_underworld_items.S
local invulnerable = df_underworld_items.config.invulnerable_slade and not minetest.settings:get_bool("creative_mode")
local server_diggable_only = function(pos, player)
return minetest.check_player_privs(player, "server")
if player then
return minetest.check_player_privs(player, "server")
end
return false
end
local add_immortality = function(slade_def)