bugssss...

This commit is contained in:
kepler155c
2017-09-28 06:33:43 -04:00
parent fcc750a36a
commit 3c494e82de
3 changed files with 5 additions and 4 deletions

View File

@@ -5,8 +5,7 @@ local Util = require('util')
local function syntax()
printError('Syntax:')
print('mwm sessionName [monitor]')
error()
error('mwm sessionName [monitor]')
end
local args = { ... }

View File

@@ -466,7 +466,9 @@ local function randomSapling()
table.insert(ALL_SAPLINGS, slot.key)
end
end
sapling = ALL_SAPLINGS[math.random(1, #ALL_SAPLINGS)]
if #ALL_SAPLINGS > 0 then
sapling = ALL_SAPLINGS[math.random(1, #ALL_SAPLINGS)]
end
end
return sapling

View File

@@ -44,7 +44,7 @@ local function findObsidian()
end
end
if turtle.getCount(16) > 0 then
if turtle.getItemCount(16) > 0 then
print('Inventory full')
print('Enter to continue...')
read()