diff --git a/RecodeItLib/Remapper/ReCodeItRemapper.cs b/RecodeItLib/Remapper/ReCodeItRemapper.cs index a10f77b..6e16eb3 100644 --- a/RecodeItLib/Remapper/ReCodeItRemapper.cs +++ b/RecodeItLib/Remapper/ReCodeItRemapper.cs @@ -43,6 +43,8 @@ public class ReCodeItRemapper { _remaps = []; _remaps = remapModels; + _alreadyGivenNames = []; + Module = DataProvider.LoadModule(assemblyPath); OutPath = outPath; diff --git a/RecodeItLib/Utils/DataProvider.cs b/RecodeItLib/Utils/DataProvider.cs index 91c4159..18f3f61 100644 --- a/RecodeItLib/Utils/DataProvider.cs +++ b/RecodeItLib/Utils/DataProvider.cs @@ -97,7 +97,7 @@ public static class DataProvider { if (!File.Exists(path)) { - throw new FileNotFoundException($"path `{path}` does not exist..."); + File.Create(path).Close(); } JsonSerializerSettings settings = new()