Skip to content

Commit

Permalink
Quarry: revert startpos+1 air-like node check
Browse files Browse the repository at this point in the history
Quarries are also deployed in entirely solid underground, where
it is expected that the quarry produces a new shaft from scratch.
  • Loading branch information
SmallJoker committed Oct 1, 2023
1 parent fda8a3d commit 49d4105
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions technic/machines/HV/quarry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ local function quarry_can_dig_node(startpos, pos, quarry_owner)
end

-- 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, dir do
for ay = pos.y+1, startpos.y do
local checkpos = {x=pos.x, y=ay, z=pos.z}
local checknode = technic.get_or_load_node(checkpos) or minetest.get_node(checkpos)

Expand Down

0 comments on commit 49d4105

Please sign in to comment.