quicker rebuild
This commit is contained in:
parent
8494273784
commit
09fec87c5d
@ -138,6 +138,21 @@ local function clear_area(pos, pos2)
|
|||||||
if not ((x == pos.x and y == pos.y and z == pos.z) or
|
if not ((x == pos.x and y == pos.y and z == pos.z) or
|
||||||
(x == pos2.x and y == pos2.y and z == pos2.z))
|
(x == pos2.x and y == pos2.y and z == pos2.z))
|
||||||
then
|
then
|
||||||
|
local count = 0
|
||||||
|
if x == pos.x then count = count +1 end
|
||||||
|
if x == pos2.x then count = count +1 end
|
||||||
|
if y == pos.y then count = count +1 end
|
||||||
|
if y == pos2.y then count = count +1 end
|
||||||
|
if z == pos.z then count = count +1 end
|
||||||
|
if z == pos2.z then count = count +1 end
|
||||||
|
if count >= 2 then
|
||||||
|
if minetest.get_node(Position(x, y, z)).name ~= NAME .. ":static_strut" then
|
||||||
|
if dig_node(Position(x, y, z), pos) then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
else
|
||||||
if dig_node(Position(x, y, z), pos) then
|
if dig_node(Position(x, y, z), pos) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
@ -145,7 +160,8 @@ local function clear_area(pos, pos2)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return true
|
end
|
||||||
|
return true --true: cleared
|
||||||
end
|
end
|
||||||
|
|
||||||
local function place_strut(position, quarrypos)
|
local function place_strut(position, quarrypos)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user