From 82e3f5e67d3a5ccfe0b5017c03e6f579dba9497b Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Wed, 25 Sep 2024 10:00:49 +0000 Subject: [PATCH] Fix variable name bug --- items.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/items.lua b/items.lua index dd65d83..57f47b8 100644 --- a/items.lua +++ b/items.lua @@ -299,7 +299,7 @@ local function QUICKLOAD(name, chest) } for _,def in ipairs(DEFS) do - if #name >= #name.prefix and name:sub(1,#name.prefix) == name.prefix then + if #name >= #def.prefix and name:sub(1,#def.prefix) == def.prefix then local cacheState = {} for _=1,chest.size() do table.insert(cacheState, clone(def.entry))