make hunters avoid repaired ancient lanterns

This commit is contained in:
FaceDeer
2022-08-07 14:43:08 -06:00
parent bc07e123ce
commit cdaeb36b14
2 changed files with 25 additions and 18 deletions

View File

@ -13,6 +13,9 @@ if minetest.get_modpath("hunter_statue") and df_underworld_items.config.underwor
tnt_vulnerable = true,
tnt_debris = "df_underworld_items:slade_sand",
groups = {hunter_statue = 1, falling_node = 1, immortal = 1},
hunters_allowed_here = function(pos)
return not minetest.find_node_near(pos, 6, "df_underworld_items:ancient_lantern_slade", true)
end,
other_overrides = {
can_dig = function(pos, player)
if player then