tweak tool protector check

This commit is contained in:
tenplus1
2026-02-07 10:01:20 +00:00
parent b4d6296107
commit eea7ffc3e8
+1 -1
View File
@@ -63,7 +63,7 @@ core.register_craftitem("protector:tool", {
end end
-- does a protector already exist ? -- does a protector already exist ?
if #core.find_nodes_in_area(vector.subtract(pos, 1), vector.add(pos, 1), if #core.find_nodes_in_area(pos, pos,
{"protector:protect", "protector:protect2", {"protector:protect", "protector:protect2",
"protector:protect_hidden"}) > 0 then "protector:protect_hidden"}) > 0 then