dont spawn into protected areas

master
Tai @ Flex 2017-01-13 16:08:54 +00:00
parent 30b950c77a
commit 3bbff92c67
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ local function newspawn(radius)
over = minetest.registered_nodes[over]
if under.walkable and not over.walkable then
if under.walkable and not over.walkable and not minetest.is_protected(anode, "") then
validnodes[#validnodes+1] = anode
end
end