From 49d4105a2b7b782e49d68db0229b2a64542bf5b5 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 1 Oct 2023 10:47:55 +0200 Subject: [PATCH] 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. --- technic/machines/HV/quarry.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/technic/machines/HV/quarry.lua b/technic/machines/HV/quarry.lua index 265b729f..98a05370 100644 --- a/technic/machines/HV/quarry.lua +++ b/technic/machines/HV/quarry.lua @@ -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)