From 2405d1c271b2b94baf71b0dba585767e4bbda841 Mon Sep 17 00:00:00 2001 From: Flowaria Date: Mon, 29 Dec 2025 20:06:00 +0900 Subject: [PATCH] Added Proper SourceFolder check for FSW --- Dialogues/DialogueLoader.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dialogues/DialogueLoader.cs b/Dialogues/DialogueLoader.cs index 4dd1c99f15..60b906a873 100644 --- a/Dialogues/DialogueLoader.cs +++ b/Dialogues/DialogueLoader.cs @@ -12,7 +12,6 @@ using MonoMod.Cil; using Terraria; using Terraria.Localization; using Terraria.ModLoader; -using Terraria.ModLoader.Core; namespace CalamityMod.Dialogues; @@ -45,7 +44,10 @@ internal partial class DialogueLoader : ModSystem { foreach (var mod in ModLoader.Mods) { - string path = Path.Combine(ModCompile.ModSourcePath, mod.Name); + if (mod.File == null) + continue; + + var path = mod.SourceFolder; if (!Directory.Exists(path)) continue;