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))