Added Proper SourceFolder check for FSW
This commit is contained in:
1 parent
b7af29b7ef
commit
2405d1c271
1 file changed
+4
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user