From 0bbe3a1b06eb4d83dcb49a68f1128fc8b4465f0d Mon Sep 17 00:00:00 2001 From: rspx Date: Sat, 7 Jan 2023 18:17:12 +0100 Subject: [PATCH] Hopefully final fixes for remote --- milo/MiloRemote.lua | 7 ++++--- milo/apis/storage.lua | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/milo/MiloRemote.lua b/milo/MiloRemote.lua index 7280c56..196476d 100644 --- a/milo/MiloRemote.lua +++ b/milo/MiloRemote.lua @@ -281,11 +281,12 @@ end local function splitKey(key) local t = Util.split(key, '(.-):') + local item = { } - if #t[#t] > 8 then - --item.nbt = table.remove(t) + if t[3] then + item.nbt = t[3] end - item.damage = tonumber(table.remove(t)) + t[3] = nil item.name = table.concat(t, ':') return item end diff --git a/milo/apis/storage.lua b/milo/apis/storage.lua index 8c9030d..2bd73be 100644 --- a/milo/apis/storage.lua +++ b/milo/apis/storage.lua @@ -489,8 +489,8 @@ function Storage:_sn(name) end local function isValidTransfer(adapter, target) - if string.find(target,":inventory") then - return false + if string.find(target,":inventory") or string.find(target,":equipment") then + return false end -- lazily cache transfer locations --[[if not adapter.transferLocations then