diff --git a/helper/depends.txt b/helper/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/helper/depends.txt @@ -0,0 +1 @@ +default diff --git a/helper/init.lua b/helper/init.lua index 6a70fe5..f3dbee2 100644 --- a/helper/init.lua +++ b/helper/init.lua @@ -8,10 +8,6 @@ -- http://creativecommons.org/licenses/by-sa/3.0/ -------------------------------------------------------------------------------- ---------------------------------------------------------------- Globals -------- - ---helper = {} - ------------------------------------------------------------- Functions -------- function xyz( i,j,k ) return {x=i,y=j,z=k} end @@ -27,10 +23,10 @@ function inTable( v, t ) return false end -function switch( c ) - local swtbl = { +function case( c ) + return { casevar = c, - caseof = function (self, code) + of = function (self, code) local f if (self.casevar) then f = code[self.casevar] or code.default @@ -48,10 +44,9 @@ function switch( c ) end end } - return swtbl end -function isDir( d ) +function isDir(d) local f = io.open(d..'/.') if f then io.close(f) @@ -61,4 +56,8 @@ function isDir( d ) end end +function nodeBox(x, y, z, i, j, k) + return {type = 'fixed', fixed = {x, y, z, i, j, k}} +end + -------------------------------------------------------------------------------- diff --git a/wheat/textures/wheat_node.png b/wheat/textures/wheat_node.png deleted file mode 100644 index 4432f3a..0000000 Binary files a/wheat/textures/wheat_node.png and /dev/null differ