Added Proper SourceFolder check for FSW

This commit is contained in:
Flowaria authored and Cameron Ewell committed 2025-12-29 22:38:01 -05:00
1 parent b7af29b7ef
commit 2405d1c271
1 file changed
+4 -2
+4 -2
View File
@@ -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;