Skip to content

Commit 33e2b1b

Browse files
committed
Improved code
1 parent 542df27 commit 33e2b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/raphimc/noteblocktool/frames/SongPlayerFrame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ private void tick() {
313313
this.statusLine.setText(" ");
314314
}
315315

316-
final int seconds = (int) Math.ceil(this.songPlayer.getSong().tickToMilliseconds(this.songPlayer.getTick()) / 1000F);
316+
final int seconds = (int) Math.ceil(this.songPlayer.getMillisecondPosition() / 1000F);
317317
this.progressLabel.setText("Current Position: " + String.format("%02d:%02d:%02d", seconds / 3600, (seconds / 60) % 60, seconds % 60));
318318
}
319319

0 commit comments

Comments
 (0)