From a08ba2bb93d7683b619a0e6b0bf00e3afd614ae4 Mon Sep 17 00:00:00 2001
From: cx384 <cx384@proton.me>
Date: Mon, 22 Jan 2024 18:27:54 +0100
Subject: [PATCH] Get rid of deprecated metadata (#628)

---
 technic/machines/HV/quarry.lua |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/technic/machines/HV/quarry.lua b/technic/machines/HV/quarry.lua
index 265b729..98a0537 100644
--- a/technic/machines/HV/quarry.lua
+++ b/technic/machines/HV/quarry.lua
@@ -129,8 +129,7 @@
 	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)
 

--
Gitblit v1.8.0