summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-06-28 13:41:07 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-06-28 13:41:07 +0200
commit70aace56b189ea547827a8eb6ead7584c4848ceb (patch)
tree2390fbdb07cf5a044ccea700b5f0d0e08c9532cf
parenta3f6d5feca70bb69491f0794149deebd4bc8f8fa (diff)
fixed bug that allows placing sale protectors too close to each other
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 5fc33f4..7fa5eb5 100644
--- a/init.lua
+++ b/init.lua
@@ -176,7 +176,7 @@ protector.overlaps = function(p)
local pos = minetest.find_nodes_in_area(
{x = p.x - r, y = p.y - r, z = p.z - r},
{x = p.x + r, y = p.y + r, z = p.z + r},
- {"protector:protect", "protector:protect2"})
+ {"protector:protect", "protector:protect2", "protector:protect_sell"})
if (#pos > 1) then
return true
end