Skip to content

Commit

Permalink
release v2.3.224
Browse files Browse the repository at this point in the history
  • Loading branch information
FluffierThanThou committed Jul 28, 2021
1 parent 186159b commit 3c0e620
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
Binary file modified Assemblies/MusicManager.dll
Binary file not shown.
8 changes: 3 additions & 5 deletions Source/Columns/Column_Seasons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ public List<Season> FilterSeasons {
}

public override int Compare(SongDef a, SongDef b) {
if (a?.allowedSeasons == null && b?.allowedSeasons == null) {
return 0;
}

return (a?.allowedSeasons) == null
return a?.allowedSeasons == null && b?.allowedSeasons == null
? 0
: (a?.allowedSeasons) == null
? -1
: b?.allowedSeasons == null ? 1 : a.allowedSeasons.Sum(s => (int) s + 10) - b.allowedSeasons.Sum(s => (int) s + 10);
}
Expand Down
8 changes: 3 additions & 5 deletions Source/MusicDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,9 @@ public bool HasCustomMetaData {
return true;
}

if (time != original.time) {
return true;
}

return seasons?.Count != original.seasons?.Count || ((seasons != null || original.seasons != null) && (seasons.Except(original.seasons).Any() || original.seasons.Except(seasons).Any()));
return time != original.time
? true
: seasons?.Count != original.seasons?.Count || ((seasons != null || original.seasons != null) && (seasons.Except(original.seasons).Any() || original.seasons.Except(seasons).Any()));
}
}

Expand Down
11 changes: 10 additions & 1 deletion modinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"url": "https://github.com/fluffy-mods/MusicManager",
"version": {
"major": 2,
"minor": 2,
"minor": 3,
"build": 224
},
"author": {
Expand All @@ -19,6 +19,15 @@
"url": "https://github.com/fluffy-mods/MusicManager"
},
"changelog": [
{
"date": "2021-07-28T22:20:02.000Z",
"message": "disable mod in pre-game screens, code style stuff",
"author": {
"name": "FluffierThanThou",
"email": "[email protected]"
},
"hash": "186159bc0761c24ac8c8fd16784e79b923ef2d20"
},
{
"date": "2021-07-28T08:53:17.000Z",
"message": "add some checks and logging to audioSource getter",
Expand Down

0 comments on commit 3c0e620

Please sign in to comment.