Skip to content

Commit

Permalink
Bump version to 0.6.0 & fix history widget's ordering
Browse files Browse the repository at this point in the history
Signed-off-by: Rina Mary Shaw <[email protected]>
  • Loading branch information
Pixaurora committed Dec 14, 2024
1 parent b4d6f12 commit 6660337
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.configureondemand = true
maven_group = net.pixaurora

# Mod Properties
mod_version = 0.5.1
mod_version = 0.6.0
update_title = axolotl
description = Helps you appreciate this game's music a bit more!

Expand All @@ -17,4 +17,4 @@ minecraft_version = 1.20.4

# Mod Publish Properties
publish_version_min = 1.17
publish_version_max = 1.21.3
publish_version_max = 1.21.4
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ public static List<ListenRecord> recentTracks(int limit) {

int count = 0;

outer: for (Collection<ListenRecord> records : Arrays.asList(currentTracks(), pastTracks())) {
for (ListenRecord record : records) {
outer: for (List<ListenRecord> records : Arrays.asList(currentTracks(), pastTracks())) {
int lastIndex = records.size() - 1;

for (int i = 0; i < records.size(); i++) {
ListenRecord record = records.get(lastIndex - i);

count += 1;

recentTracks.add(record);
Expand All @@ -39,7 +43,7 @@ public static List<ListenRecord> recentTracks(int limit) {
return recentTracks;
}

private static Collection<ListenRecord> currentTracks() {
private static List<ListenRecord> currentTracks() {
ArrayList<ListenRecord> currentTracks = new ArrayList<>();

for (PlayingSong song : EventHandling.playingSongs()) {
Expand All @@ -53,7 +57,7 @@ private static Collection<ListenRecord> currentTracks() {
return currentTracks;
}

private static Collection<ListenRecord> pastTracks() {
private static List<ListenRecord> pastTracks() {
return KitTunes.LISTEN_HISTORY.get(ListenHistory::getHistory);
}

Expand Down
19 changes: 19 additions & 0 deletions src/main/resources/changelog/0.6.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
This update adds support for Minecraft 1.21.4, as well as revamping the music screen with a pause feature and a history widget!

# Main Changes
- Store natives in global cache directory (by @Pixaurora)
- Add a play/pause button so you can pause your music (by @Pixaurora)
- Send scrobble events at 66% listen time instead of when the track ends (by @Pixaurora)
- Show the music cooldown on the Music Screen (by @Pixaurora)
- Add History Widget (by @Pixaurora)
- Re-do the layout of the Music Screen so everything is fully on screen (by @Pixaurora)

# Misc Changes
- Add a minimal native HTTP client (by @LostLuma)
- Run workflows only if matching files were changed (by @LostLuma)
- Store Listen History (by @Pixaurora)
- Clean up Scrobbler and Rendering code to make future improvements easier (by @Pixaurora)

# Natives Changes
- Add support for Risc-V on Linux (by @Pixaurora, @LostLuma)

0 comments on commit 6660337

Please sign in to comment.