Polish RA, make it usable.
This commit is contained in:
parent
262c0b5408
commit
6825a05778
14 changed files with 771 additions and 289 deletions
|
|
@ -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 = ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue