Skip to content

Commit

Permalink
make countdowns not show '0 seconds left'
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Aug 7, 2018
1 parent 4555d20 commit ed23832
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private void placeIndicators() {

private void updateTitle() {
if (playerTwo == null || playerOne == null) return;
String time = String.valueOf((stateEndTimeStamp - System.currentTimeMillis())/1000);
String time = String.valueOf(((stateEndTimeStamp - System.currentTimeMillis())/1000)+1);
nmsUtility.updateInventoryTitle(playerTwo, currentSecondTitle.replace("%time%", time));
nmsUtility.updateInventoryTitle(playerOne, currentFirstTitle.replace("%time%", time));
}
Expand Down

0 comments on commit ed23832

Please sign in to comment.