Skip to content

Commit

Permalink
remove checking stageCleared for ClearStage invoking
Browse files Browse the repository at this point in the history
  • Loading branch information
sonohoshi committed Mar 13, 2024
1 parent 7b9832f commit 2cac33b
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions Lib9c/Action/HackAndSlash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -508,17 +508,14 @@ public IWorld Execute(
sw.Restart();
if (simulator.Log.IsClear)
{
if (!stageCleared)
{
avatarState.worldInformation.ClearStage(
WorldId,
StageId,
blockIndex,
worldSheet,
worldUnlockSheet
);
stageCleared = true;
}
avatarState.worldInformation.ClearStage(
WorldId,
StageId,
blockIndex,
worldSheet,
worldUnlockSheet
);
stageCleared = true;
sw.Stop();
Log.Verbose("{AddressesHex} {Source} HAS {Process} from #{BlockIndex}: {Elapsed}",
addressesHex, source, "ClearStage", blockIndex, sw.Elapsed.TotalMilliseconds);
Expand Down

0 comments on commit 2cac33b

Please sign in to comment.