fix: make mining behavior more consistent
Remove possibility for spiral mining.
This commit is contained in:
parent
d9c73e2959
commit
911ec69ad6
1 changed files with 2 additions and 2 deletions
4
mine.lua
4
mine.lua
|
|
@ -289,8 +289,8 @@ function splitHorizontal (block)
|
|||
take_amt = MED_DIM
|
||||
end
|
||||
-- decide whether to take a slice off of the x or z direction
|
||||
-- (criteria: bite a piece off the bigger dimension)
|
||||
if math.abs(block.v2.z) >= math.abs(block.v2.x) then
|
||||
-- (criteria: bite a piece off the smaller dimension)
|
||||
if math.abs(block.v2.z) <= math.abs(block.v2.x) then
|
||||
return block:take(take_amt, "z")
|
||||
else
|
||||
return block:take(take_amt, "x")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue