Hopefully final fixes for remote
This commit is contained in:
@@ -281,11 +281,12 @@ end
|
|||||||
|
|
||||||
local function splitKey(key)
|
local function splitKey(key)
|
||||||
local t = Util.split(key, '(.-):')
|
local t = Util.split(key, '(.-):')
|
||||||
|
|
||||||
local item = { }
|
local item = { }
|
||||||
if #t[#t] > 8 then
|
if t[3] then
|
||||||
--item.nbt = table.remove(t)
|
item.nbt = t[3]
|
||||||
end
|
end
|
||||||
item.damage = tonumber(table.remove(t))
|
t[3] = nil
|
||||||
item.name = table.concat(t, ':')
|
item.name = table.concat(t, ':')
|
||||||
return item
|
return item
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -489,8 +489,8 @@ function Storage:_sn(name)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function isValidTransfer(adapter, target)
|
local function isValidTransfer(adapter, target)
|
||||||
if string.find(target,":inventory") then
|
if string.find(target,":inventory") or string.find(target,":equipment") then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
-- lazily cache transfer locations
|
-- lazily cache transfer locations
|
||||||
--[[if not adapter.transferLocations then
|
--[[if not adapter.transferLocations then
|
||||||
|
|||||||
Reference in New Issue
Block a user