Fix music lines in the tmtrainer log causing issues

This commit is contained in:
Buurazu authored and GitHub committed 2022-01-21 02:31:44 -05:00
1 parent e0f8d39caa
commit 3fba706c4e
1 file changed
+2
+2
View File
@@ -56,6 +56,8 @@ local function parseEffectLine(raw)
-- words[1] = "[INFO]", words[2] = "-" -- words[1] = "[INFO]", words[2] = "-"
local effectTrigger = words[3] 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 if (string.find(effectTrigger, "entity_spawned")) then
effectTrigger = "entity_spawned" effectTrigger = "entity_spawned"
triggerReplacements[1] = "{{ColorEIDObjName}}" .. entityToName(string.sub(words[3], 16, -2)) .. "{{CR}}" triggerReplacements[1] = "{{ColorEIDObjName}}" .. entityToName(string.sub(words[3], 16, -2)) .. "{{CR}}"