From 3fba706c4e36de0ad7c3be25fe574c316487de12 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Fri, 21 Jan 2022 02:31:44 -0500 Subject: [PATCH] Fix music lines in the tmtrainer log causing issues --- eid_tmtrainer.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eid_tmtrainer.lua b/eid_tmtrainer.lua index c02d3aeb..7ff5ee72 100644 --- a/eid_tmtrainer.lua +++ b/eid_tmtrainer.lua @@ -56,6 +56,8 @@ local function parseEffectLine(raw) -- words[1] = "[INFO]", words[2] = "-" local effectTrigger = words[3] + -- the effects list is rarely interrupted by music loading log entries, just ignore it and have a slightly inaccurate desc + if effectTrigger == "Queued" then return "" end if (string.find(effectTrigger, "entity_spawned")) then effectTrigger = "entity_spawned" triggerReplacements[1] = "{{ColorEIDObjName}}" .. entityToName(string.sub(words[3], 16, -2)) .. "{{CR}}"