Skip to content

Commit

Permalink
Fixed: Unnecessary Loader Config Reads in ModUserConfigService
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Feb 23, 2022
1 parent f701528 commit 4d80c7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void Execute()

private void CreateUserConfigOnNewConfigCreated(PathTuple<ModConfig> tuple)
{
var filePath = ModUserConfig.GetUserConfigPathForMod(tuple.Config.ModId);
var filePath = ModUserConfig.GetUserConfigPathForMod(tuple.Config.ModId, ConfigDirectory);
if (!File.Exists(filePath))
IConfig<ModUserConfig>.ToPath(new ModUserConfig() { ModId = tuple.Config.ModId }, filePath);
}
Expand Down

0 comments on commit 4d80c7d

Please sign in to comment.