Replace getItemMeta with getItemDetail

This commit is contained in:
Marcelsky
2023-03-25 14:50:42 +01:00
committed by Kan18
parent 1ae380d3b1
commit 4321f336db
3 changed files with 5 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ function page:updateInventoryList()
for slot, item in pairs(inv) do
if (context.state.depositAll.includeHotbar or slot > 9) and item.name ~= 'plethora:neuralconnector' then
item = itemDB:get(item, function() return ni.getInventory().getItemMeta(slot) end)
item = itemDB:get(item, function() return ni.getInventory().getItemDetail(slot) end)
local key = makeKey(item)
if not list[key] then
item.displayName = item.displayName:match('(.+) %(damage:.+%)') or item.displayName
@@ -89,7 +89,7 @@ function page:depositAll()
local inv = ni.getInventory().list()
for slot, item in pairs(inv) do
item = itemDB:get(item, function() return ni.getInventory().getItemMeta(slot) end)
item = itemDB:get(item, function() return ni.getInventory().getItemDetail(slot) end)
local key = makeKey(item)
if not context.state.depositAll.retain[key] then
if (context.state.depositAll.includeHotbar or slot > 9) and item.name ~= 'plethora:neuralconnector' then