Skip to content

Commit 79a4fc5

Browse files
committed
Fix wrong logging.
1 parent bf90725 commit 79a4fc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Penumbra/Services/PcpService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,11 @@ private void OnModPathChange(ModPathChangeType type, Mod mod, DirectoryInfo? old
9999
{
100100
// First version had collection.json, changed.
101101
var oldFile = Path.Combine(newDirectory.FullName, "collection.json");
102-
Penumbra.Log.Information("[PCPService] Renaming old PCP file from collection.json to character.json.");
103102
if (File.Exists(oldFile))
103+
{
104+
Penumbra.Log.Information("[PCPService] Renaming old PCP file from collection.json to character.json.");
104105
File.Move(oldFile, file, true);
106+
}
105107
else
106108
return;
107109
}

0 commit comments

Comments
 (0)