fix(mine.lua): implemented unimplemented function
This commit is contained in:
parent
b7e5ff879e
commit
9a8f81e428
1 changed files with 3 additions and 0 deletions
3
mine.lua
3
mine.lua
|
|
@ -286,6 +286,9 @@ function splitHorizontal (block)
|
||||||
-- Future work: potentially split a large block into smaller blocks
|
-- Future work: potentially split a large block into smaller blocks
|
||||||
-- based on currentPos (think splitting down the middle instead of
|
-- based on currentPos (think splitting down the middle instead of
|
||||||
-- splitting off of one end)
|
-- splitting off of one end)
|
||||||
|
local differentSigns = function (a, b)
|
||||||
|
return math.abs(a + b) < math.abs(a) + math.abs(b)
|
||||||
|
end
|
||||||
local bigBlock = function (block)
|
local bigBlock = function (block)
|
||||||
return (block.v2.x >= BIG_DIM) and (block.v2.z >= BIG_DIM)
|
return (block.v2.x >= BIG_DIM) and (block.v2.z >= BIG_DIM)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue