res.autoapply = config.autoapply
end
local cstate = res:parse()
- if cstate and not state or cstate < state then
+ if cstate and (not state or cstate < state) then
state = cstate
end
end
for i, res in ipairs(maps) do
local cstate = res:parse()
- if cstate and not state or cstate < state then
+ if cstate and (not state or cstate < state) then
state = cstate
end
end