From 4321f336db24a0c6339780d7387c1a2d4e44310e Mon Sep 17 00:00:00 2001 From: Marcelsky <62389326+MarcelskyXD@users.noreply.github.com> Date: Sat, 25 Mar 2023 14:50:42 +0100 Subject: [PATCH] Replace getItemMeta with getItemDetail --- milo/plugins/remote/autostore.lua | 4 ++-- milo/plugins/remote/depositAll.lua | 4 ++-- milo/plugins/remote/feeder.lua | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/milo/plugins/remote/autostore.lua b/milo/plugins/remote/autostore.lua index e7315f2..875d555 100644 --- a/milo/plugins/remote/autostore.lua +++ b/milo/plugins/remote/autostore.lua @@ -58,7 +58,7 @@ function page.tabs.inventory:enable() local list = { } for k, item in pairs(inv) do - item = itemDB:get(item, function() return ni.getInventory().getItemMeta(k) end) + item = itemDB:get(item, function() return ni.getInventory().getItemDetail(k) end) local key = makeKey(item) if not list[key] then item.key = key @@ -129,7 +129,7 @@ Event.onInterval(5, function() pcall(function() -- prevent errors from some mod items for slot,v in pairs(ni.getInventory().list()) do - local item = itemDB:get(v, function() ni.getInventory().getItemMeta(slot) end) + local item = itemDB:get(v, function() ni.getInventory().getItemDetail(slot) end) if item then if context.state.autostore[makeKey(item)] then context:sendRequest({ diff --git a/milo/plugins/remote/depositAll.lua b/milo/plugins/remote/depositAll.lua index e3fcba4..8b87d36 100644 --- a/milo/plugins/remote/depositAll.lua +++ b/milo/plugins/remote/depositAll.lua @@ -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 diff --git a/milo/plugins/remote/feeder.lua b/milo/plugins/remote/feeder.lua index 36ed597..05eb71e 100644 --- a/milo/plugins/remote/feeder.lua +++ b/milo/plugins/remote/feeder.lua @@ -33,7 +33,7 @@ function page:enable() local list = { } for k, item in pairs(inv) do - item = itemDB:get(item, function() return ni.getInventory().getItemMeta(k) end) + item = itemDB:get(item, function() return ni.getInventory().getItemDetail(k) end) local key = itemDB:makeKey(item) if not list[key] then item.key = key