bones can be digged in protected village areas
This commit is contained in:
parent
7aaaa88c37
commit
5de03f47d2
@ -10,12 +10,18 @@ mg_villages.get_town_id_at_pos = function( pos )
|
||||
if( mg_villages.inside_village_area( pos.x, pos.z, v, village_noise)) then
|
||||
|
||||
local node = minetest.get_node( pos );
|
||||
-- leaves can be digged in villages
|
||||
if( node
|
||||
and node.name
|
||||
and minetest.registered_nodes[ node.name ]
|
||||
and minetest.registered_nodes[ node.name ].groups
|
||||
and minetest.registered_nodes[ node.name ].groups.leaves ) then
|
||||
return nil;
|
||||
-- bones can be digged in villages
|
||||
elseif( node
|
||||
and node.name
|
||||
and node.name == 'bones:bones' ) then
|
||||
return nil;
|
||||
else
|
||||
return id;
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user