Fixed music player issues with handling repeat tracks.
When pressing the "next" button, songs will only be pushed when a new track plays. Fixes a potential null pointer crash. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -251,7 +251,7 @@ public class Game extends BasicGameState {
|
||||
if (checkpointLoaded) {
|
||||
int checkpoint = Options.getCheckpoint();
|
||||
String checkpointText = String.format(
|
||||
"~ Playing from checkpoint at %02d:%02d. ~",
|
||||
"Playing from checkpoint at %02d:%02d.",
|
||||
TimeUnit.MILLISECONDS.toMinutes(checkpoint),
|
||||
TimeUnit.MILLISECONDS.toSeconds(checkpoint) -
|
||||
TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(checkpoint))
|
||||
|
||||
Reference in New Issue
Block a user