Skip to content

Commit

Permalink
revert the change
Browse files Browse the repository at this point in the history
  • Loading branch information
HikariCalyx committed Jan 8, 2025
1 parent e9ecae9 commit 4d028e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WzComparerR2/FrmPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ private void patcher_PatchingStateChanged(object sender, PatchingEventArgs e)
}
}

if (string.IsNullOrEmpty(this.compareFolder) && this.deadPatch && sender is WzPatcher patcher)
if (string.IsNullOrEmpty(this.compareFolder) && this.deadPatch && e.Part.Type == 1 && sender is WzPatcher patcher)
{
if (patcher.IsKMST1125Format.Value)
{
Expand Down Expand Up @@ -660,7 +660,7 @@ private void patcher_PatchingStateChanged(object sender, PatchingEventArgs e)
AppendStateText(" (即時パッチ)ファイル適用の延期...\r\n");
}
}
else if (e.Part.Type == 1)
else
{
patcher.SafeMove(e.Part.TempFilePath, e.Part.OldFilePath);
AppendStateText(" (即時パッチ)ファイルを適用しています...\r\n");
Expand Down

0 comments on commit 4d028e2

Please sign in to comment.