Add files via upload

master
AiTechEye 2022-07-15 09:11:24 +02:00 committed by GitHub
parent ae7c613f37
commit 707e8d0f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -387,14 +387,14 @@ minetest.register_node("protect:area_breaker", {
},
del=function(pos)
for i,v in pairs(protect.areas) do
if v.game_rule then
--if v.game_rule then
if (pos.x >= v.pos1.x and pos.x <= v.pos2.x)
and (pos.y >= v.pos1.y and pos.y <= v.pos2.y)
and (pos.z >= v.pos1.z and pos.z <= v.pos2.z) then
protect.remove_game_rule_area(v.id)
return true
end
end
--end
end
end,
after_destruct = function(pos)