From 06ebed9553c066eb590d94e203edae596a260214 Mon Sep 17 00:00:00 2001 From: Python1320 Date: Sun, 13 Aug 2023 21:40:49 +0300 Subject: [PATCH] fix invalid notfound errors --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 2868c42..fccf127 100644 --- a/init.lua +++ b/init.lua @@ -188,12 +188,12 @@ local function parse_mdl(f, fp) local found for _,path in next,paths do - local found = dogeneric(("materials/%s/%s.vmt"):format(path,material)) + local found1 = dogeneric(("materials/%s/%s.vmt"):format(path,material)) local found2 = dogeneric(("materials/%s/%s.vtf"):format(path,material)) local found3 = dogeneric(("materials/%s/%s.hdr.vtf"):format(path,material)) - if found or found2 or found3 then + if found1 or found2 or found3 then --print("FOUND",path,material) - found=true + found = true break end