Fix variable name bug

This commit is contained in:
Gabriel Tofvesson 2024-09-25 10:00:49 +00:00
parent 72eea68b98
commit 82e3f5e67d

View File

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