Hopefully final fixes for remote

This commit is contained in:
rspx
2023-01-07 18:17:12 +01:00
committed by Kan18
parent e683e834d8
commit 0bbe3a1b06
2 changed files with 6 additions and 5 deletions

View File

@@ -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