bugssss...
This commit is contained in:
@@ -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 = { ... }
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user