Signed by: Gabriel Pérez-Cerezo <gabriel@gpcf.eu> fixed bug that allows placing sale protectors too close to each other
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Tue, 28 Jun 2016 11:41:07 +0000 (13:41 +0200)
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Tue, 28 Jun 2016 11:41:07 +0000 (13:41 +0200)
init.lua

index 5fc33f4..7fa5eb5 100644 (file)
--- 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