Polish RA, make it usable.

This commit is contained in:
Soph :3 2026-01-29 18:59:52 +02:00
parent 262c0b5408
commit 6825a05778
14 changed files with 771 additions and 289 deletions

View file

@ -1,6 +1,11 @@
local config = require("../../config") ---@type Config
local inv = require("modules.inv")
local inv;
if config.inventories == nil and config.remote.connection then
inv = require("modules.inv_ra")
else
inv = require("modules.inv")
end
local function levDist(s, t)
local n = #s
local m = #t
@ -176,7 +181,7 @@ function run()
---@type ccTweaked.peripheral.Inventory
local peripInventory = perip.getInventory()
local best = findBest(inv.getAIL().listNames(), args[2])
local best = findBest(inv.listNames(), args[2])
local itemName = ""