fix: make mining behavior more consistent

Remove possibility for spiral mining.
This commit is contained in:
Emerson Rosen-Jones 2026-05-03 17:43:59 -04:00
parent d9c73e2959
commit 911ec69ad6

View file

@ -289,8 +289,8 @@ function splitHorizontal (block)
take_amt = MED_DIM take_amt = MED_DIM
end end
-- decide whether to take a slice off of the x or z direction -- decide whether to take a slice off of the x or z direction
-- (criteria: bite a piece off the bigger dimension) -- (criteria: bite a piece off the smaller dimension)
if math.abs(block.v2.z) >= math.abs(block.v2.x) then if math.abs(block.v2.z) <= math.abs(block.v2.x) then
return block:take(take_amt, "z") return block:take(take_amt, "z")
else else
return block:take(take_amt, "x") return block:take(take_amt, "x")