From 43e662e68cf3c33f0a963f4a90c170eea7af4d9c Mon Sep 17 00:00:00 2001 From: rspx Date: Sat, 25 Mar 2023 17:35:56 +0100 Subject: [PATCH] Revert "Merge pull request #1 from MarcelskyXD/develop-1.8" This reverts commit f7ac0b1674ee7558578a3c127a4f252dc159eeac, reversing changes made to a76c59fb361732b111ee3d7965d61372c1c33da8. --- 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 875d555..e7315f2 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().getItemDetail(k) end) + item = itemDB:get(item, function() return ni.getInventory().getItemMeta(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().getItemDetail(slot) end) + local item = itemDB:get(v, function() ni.getInventory().getItemMeta(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 8b87d36..e3fcba4 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().getItemDetail(slot) end) + item = itemDB:get(item, function() return ni.getInventory().getItemMeta(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().getItemDetail(slot) end) + item = itemDB:get(item, function() return ni.getInventory().getItemMeta(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 05eb71e..36ed597 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().getItemDetail(k) end) + item = itemDB:get(item, function() return ni.getInventory().getItemMeta(k) end) local key = itemDB:makeKey(item) if not list[key] then item.key = key