1.7.10 compatibility

This commit is contained in:
kepler155c
2018-02-24 04:47:47 -05:00
parent 00ab55be72
commit f38c968656
2 changed files with 19 additions and 11 deletions

View File

@@ -1077,12 +1077,20 @@ function listingPage:applyFilter()
self.grid:setValues(t)
end
local s, m = pcall(findMachines)
if not s and m then
printError(m)
read()
return
-- randomly errors in 1.7x with "you are not attached to this computer"
local retryCount = 0
for _ = 1, 3 do
local s, m = pcall(findMachines)
if not s and m then
_G.printError(m)
else
break
end
retryCount = retryCount + 1
if retryCount > 3 then
error(m)
end
print('retrying...')
end
loadResources()

View File

@@ -25,12 +25,12 @@ if multishell then
end
local config = {
computerFacing = 'north', -- direction turtle is facing
computerFacing = 'north', -- direction turtle is facing
inventory = 'top',
craftingChest = 'bottom',
controller = 'none',
stock = 'none',
inventory = 'top', -- main inventory
craftingChest = 'bottom', -- required in 1.8+ for crafting
controller = 'none', -- AE / RS controller
stock = 'none', -- another inventory for restocking main inventory
trashDirection = 'up', -- trash/chest in relation to inventory
monitor = 'type/monitor',