better detection for adapters
This commit is contained in:
@@ -1064,7 +1064,6 @@ local __actions = {
|
||||
clipboard.setData(text)
|
||||
clipboard.useInternal(true)
|
||||
else
|
||||
debug(text)
|
||||
os.queueEvent('clipboard_copy', text)
|
||||
end
|
||||
setStatus('%d chars copied', size)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user