diff --git a/src/main/java/com/github/steveplays28/realisticsleep/util/SleepMathUtil.java b/src/main/java/com/github/steveplays28/realisticsleep/util/SleepMathUtil.java index f9ceb7a..27756ed 100644 --- a/src/main/java/com/github/steveplays28/realisticsleep/util/SleepMathUtil.java +++ b/src/main/java/com/github/steveplays28/realisticsleep/util/SleepMathUtil.java @@ -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) {