Skip to content

Commit

Permalink
Last few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 committed Jul 2, 2024
1 parent b68d151 commit b800a27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void run() {
break;
case IN_PROGRESS:
elapsed = (Duration.between(siege.getStartTime(), LocalDateTime.now()).toMillis() - (siege.getConfig().getDelayBeforeStart() * 1000L));
bossBar.setProgress(Math.min(elapsed / ((siege.getConfig().getDuration() - siege.getConfig().getDelayBeforeStart() - siege.getConfig().getSuddenDeathDuration()) * 1000.0), 1.0);
bossBar.setProgress(Math.min(elapsed / ((siege.getConfig().getDuration() - siege.getConfig().getDelayBeforeStart() - siege.getConfig().getSuddenDeathDuration()) * 1000.0), 1.0));
bossBar.setTitle(siege.getName() + ": " + String.format("%,d", Math.round((((siege.getConfig().getDuration() - siege.getConfig().getDelayBeforeStart() - siege.getConfig().getSuddenDeathDuration()) * 1000.0) - elapsed) / 1000.0)));
break;
case SUDDEN_DEATH:
Expand Down

0 comments on commit b800a27

Please sign in to comment.