Commit ffed2c1d authored by Vury Leo's avatar Vury Leo

lint

parent 284b5b8c
...@@ -4706,16 +4706,14 @@ function Fusion.GetMaterialCardSignature(mc,tc,patterns,fcheck_signature) ...@@ -4706,16 +4706,14 @@ function Fusion.GetMaterialCardSignature(mc,tc,patterns,fcheck_signature)
table.insert(parts,slot.group.filter(mc) and "1" or "0") table.insert(parts,slot.group.filter(mc) and "1" or "0")
end end
if slot.group.has_same then if slot.group.has_same then
if slot.group.has_same then for _,fn in ipairs(slot.group.has_same) do
for _,fn in ipairs(slot.group.has_same) do local raw=fn(mc,tc)
local raw=fn(mc,tc) if type(raw)=="table" then
if type(raw)=="table" then -- serialize a returned list/array into a stable string
-- serialize a returned list/array into a stable string table.insert(parts,"[" .. serializeList(raw) .. "]")
table.insert(parts,"[" .. serializeList(raw) .. "]") else
else -- assume bitmask or simple value
-- assume bitmask or simple value table.insert(parts,tostring(raw))
table.insert(parts,tostring(raw))
end
end end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment