Skip to content

Commit

Permalink
Fixed bug where in sky high time before start would not be calculated…
Browse files Browse the repository at this point in the history
… right when enabling it during the game.
  • Loading branch information
PdeBot committed Dec 18, 2020
1 parent 1082481 commit bcf8a6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void onEnable() {
if (timeUntilFirstRun < 0){
timeUntilFirstRun = 0;
}
taskId = Bukkit.getScheduler().scheduleSyncDelayedTask(UhcCore.getPlugin(), new SkyHighThread(this), timeUntilFirstRun);
taskId = Bukkit.getScheduler().scheduleSyncDelayedTask(UhcCore.getPlugin(), new SkyHighThread(this), timeUntilFirstRun*TimeUtils.SECOND_TICKS);
}
}

Expand Down

0 comments on commit bcf8a6d

Please sign in to comment.