chore: remove completed TODOs
This commit is contained in:
parent
6ced67f883
commit
af05e2dd21
1 changed files with 0 additions and 3 deletions
3
mine.lua
3
mine.lua
|
|
@ -36,7 +36,6 @@ end
|
||||||
local bmetatable, new_block
|
local bmetatable, new_block
|
||||||
-- what is this? a type that holds a starting position and a dimention as
|
-- what is this? a type that holds a starting position and a dimention as
|
||||||
-- two vectors
|
-- two vectors
|
||||||
-- TODO learn about metatables
|
|
||||||
local Block = {
|
local Block = {
|
||||||
-- orient our corner and offset to a vector
|
-- orient our corner and offset to a vector
|
||||||
orient = function (self, pos)
|
orient = function (self, pos)
|
||||||
|
|
@ -64,7 +63,6 @@ local Block = {
|
||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
take = function (self, amt, dir)
|
take = function (self, amt, dir)
|
||||||
-- TODO
|
|
||||||
if dir ~= "x" and dir ~= "y" and dir ~= "z" then return nil end
|
if dir ~= "x" and dir ~= "y" and dir ~= "z" then return nil end
|
||||||
|
|
||||||
local block_offset = -1
|
local block_offset = -1
|
||||||
|
|
@ -283,7 +281,6 @@ function canMine (block)
|
||||||
end
|
end
|
||||||
|
|
||||||
function splitHorizontal (block)
|
function splitHorizontal (block)
|
||||||
-- TODO make this less naive?
|
|
||||||
local take_amt = 1
|
local take_amt = 1
|
||||||
local bigBlock = function (block)
|
local bigBlock = function (block)
|
||||||
return (block.v2.x >= BIG_DIM) or (block.v2.z >= BIG_DIM)
|
return (block.v2.x >= BIG_DIM) or (block.v2.z >= BIG_DIM)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue