better detection for adapters

This commit is contained in:
kepler155c
2017-10-15 02:35:40 -04:00
parent 728cda2215
commit d0c8d2dc4f
4 changed files with 20 additions and 9 deletions

View File

@@ -12,12 +12,11 @@ local multishell = _ENV.multishell
local storage = RefinedAdapter()
if not storage:isValid() then
storage = MEAdapter({ auto = true })
if not storage:isValid() then
storage = ChestAdapter()
end
storage = MEAdapter({ autoDetect = true })
end
if not storage:isValid() then
storage = ChestAdapter({ autoDetect = true })
end
if not storage:isValid() then
error('Not connected to a storage device')
end