Extra error checking.
This commit is contained in:
parent
aa999e2ed5
commit
bf26b8bee1
25 changed files with 897 additions and 314 deletions
4
deco.lua
4
deco.lua
|
@ -137,6 +137,10 @@ end
|
|||
|
||||
-- Create and initialize a table for a schematic.
|
||||
function fun_caves.schematic_array(width, height, depth)
|
||||
if not (width and height and depth and type(width) == 'number' and type(height) == 'number' and type(depth) == 'number') then
|
||||
return
|
||||
end
|
||||
|
||||
-- Dimensions of data array.
|
||||
local s = {size={x=width, y=height, z=depth}}
|
||||
s.data = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue