1.7.10 compatibility
This commit is contained in:
@@ -1077,12 +1077,20 @@ function listingPage:applyFilter()
|
|||||||
self.grid:setValues(t)
|
self.grid:setValues(t)
|
||||||
end
|
end
|
||||||
|
|
||||||
local s, m = pcall(findMachines)
|
-- randomly errors in 1.7x with "you are not attached to this computer"
|
||||||
|
local retryCount = 0
|
||||||
if not s and m then
|
for _ = 1, 3 do
|
||||||
printError(m)
|
local s, m = pcall(findMachines)
|
||||||
read()
|
if not s and m then
|
||||||
return
|
_G.printError(m)
|
||||||
|
else
|
||||||
|
break
|
||||||
|
end
|
||||||
|
retryCount = retryCount + 1
|
||||||
|
if retryCount > 3 then
|
||||||
|
error(m)
|
||||||
|
end
|
||||||
|
print('retrying...')
|
||||||
end
|
end
|
||||||
|
|
||||||
loadResources()
|
loadResources()
|
||||||
|
|||||||
@@ -25,12 +25,12 @@ if multishell then
|
|||||||
end
|
end
|
||||||
|
|
||||||
local config = {
|
local config = {
|
||||||
computerFacing = 'north', -- direction turtle is facing
|
computerFacing = 'north', -- direction turtle is facing
|
||||||
|
|
||||||
inventory = 'top',
|
inventory = 'top', -- main inventory
|
||||||
craftingChest = 'bottom',
|
craftingChest = 'bottom', -- required in 1.8+ for crafting
|
||||||
controller = 'none',
|
controller = 'none', -- AE / RS controller
|
||||||
stock = 'none',
|
stock = 'none', -- another inventory for restocking main inventory
|
||||||
|
|
||||||
trashDirection = 'up', -- trash/chest in relation to inventory
|
trashDirection = 'up', -- trash/chest in relation to inventory
|
||||||
monitor = 'type/monitor',
|
monitor = 'type/monitor',
|
||||||
|
|||||||
Reference in New Issue
Block a user