mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 02:44:50 +00:00
can now go to last using previous and being at the first song
This commit is contained in:
@@ -175,7 +175,9 @@ public class MusicManager<T extends AudioResource> implements org.toop.framework
|
||||
|
||||
public void previous() {
|
||||
if (backgroundMusic.isEmpty()) return;
|
||||
if (playingIndex == 0) return;
|
||||
if (playingIndex == 0) {
|
||||
playingIndex = backgroundMusic.size();
|
||||
}
|
||||
stop();
|
||||
scheduler.shutdownNow();
|
||||
playingIndex = playingIndex - 1;
|
||||
|
||||
Reference in New Issue
Block a user