Quarry: revert startpos+1 air-like node check

Quarries are also deployed in entirely solid underground, where
it is expected that the quarry produces a new shaft from scratch.
This commit is contained in:
SmallJoker 2023-10-01 10:47:55 +02:00
parent fda8a3d042
commit 49d4105a2b

View File

@ -129,8 +129,7 @@ local function quarry_can_dig_node(startpos, pos, quarry_owner)
end end
-- Find airlike nodes on top of the current node. The entire Y column must be free. -- Find airlike nodes on top of the current node. The entire Y column must be free.
local dir = (pos.y+1 < startpos.y) and 1 or -1 for ay = pos.y+1, startpos.y do
for ay = pos.y+1, startpos.y, dir do
local checkpos = {x=pos.x, y=ay, z=pos.z} local checkpos = {x=pos.x, y=ay, z=pos.z}
local checknode = technic.get_or_load_node(checkpos) or minetest.get_node(checkpos) local checknode = technic.get_or_load_node(checkpos) or minetest.get_node(checkpos)