Skip to content

Commit

Permalink
fix: Fix nighttime sleeping wake up time
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveplays28 committed Oct 8, 2023
1 parent f51baa2 commit 3a82637
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static int calculateTicksToTimeOfDay(int timeOfDay, int targetTimeOfDay)
}

public static int calculateTicksUntilAwake(int currentTimeOfDay) {
return calculateTicksToTimeOfDay(currentTimeOfDay, isNightTime(currentTimeOfDay) ? DAY_LENGTH : SUNSET_WAKE_UP);
return calculateTicksToTimeOfDay(currentTimeOfDay, isNightTime(currentTimeOfDay) ? SUNRISE_WAKE_UP : SUNSET_WAKE_UP);
}

public static int calculateSecondsUntilAwake(int currentTimeOfDay, double timeStepPerTick, double tps) {
Expand Down

0 comments on commit 3a82637

Please sign in to comment.