diff --git a/gradle.properties b/gradle.properties index 9deaf84..3a956d6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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! @@ -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 diff --git a/projects/kitten-heart/src/main/java/net/pixaurora/kitten_heart/impl/listener/HistoryWidgetUpdater.java b/projects/kitten-heart/src/main/java/net/pixaurora/kitten_heart/impl/listener/HistoryWidgetUpdater.java index 7ed8920..d6d5c26 100644 --- a/projects/kitten-heart/src/main/java/net/pixaurora/kitten_heart/impl/listener/HistoryWidgetUpdater.java +++ b/projects/kitten-heart/src/main/java/net/pixaurora/kitten_heart/impl/listener/HistoryWidgetUpdater.java @@ -24,8 +24,12 @@ public static List recentTracks(int limit) { int count = 0; - outer: for (Collection records : Arrays.asList(currentTracks(), pastTracks())) { - for (ListenRecord record : records) { + outer: for (List 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); @@ -39,7 +43,7 @@ public static List recentTracks(int limit) { return recentTracks; } - private static Collection currentTracks() { + private static List currentTracks() { ArrayList currentTracks = new ArrayList<>(); for (PlayingSong song : EventHandling.playingSongs()) { @@ -53,7 +57,7 @@ private static Collection currentTracks() { return currentTracks; } - private static Collection pastTracks() { + private static List pastTracks() { return KitTunes.LISTEN_HISTORY.get(ListenHistory::getHistory); } diff --git a/src/main/resources/changelog/0.6.0.txt b/src/main/resources/changelog/0.6.0.txt new file mode 100644 index 0000000..ae9ee64 --- /dev/null +++ b/src/main/resources/changelog/0.6.0.txt @@ -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) +