Protect translocators. Fix mobs requirement error in villages.
The translocator protection DOES NOT WORK against mobs explosions. This is not a fun_caves issue.
This commit is contained in:
parent
26622dd1dd
commit
0fd901dcca
7 changed files with 108 additions and 70 deletions
|
@ -8,6 +8,9 @@ function minetest.is_protected(pos, name)
|
|||
if node and get_item_group(node.name, "fortress") ~= 0 then
|
||||
return true
|
||||
end
|
||||
if node and node.name == 'fun_caves:translocator' and (name == '' or not minetest.get_player_by_name(name)) then
|
||||
return true
|
||||
end
|
||||
return old_is_protected(pos, name)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue