Skip to content

Commit

Permalink
修复宏排序问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnze committed Jun 5, 2023
1 parent 631d00d commit 739335e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Craft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export interface Status {
}

export const compareStatus = (s1: Status, s2: Status): number => {
if (s1.progress != s1.recipe.difficulty)
return s1.progress - s1.recipe.difficulty;
if (s1.progress != s2.progress)
return s1.progress - s2.progress;
if (s1.quality != s2.quality)
return s1.quality - s2.quality;
if (s1.step != s2.step)
Expand Down

0 comments on commit 739335e

Please sign in to comment.