Fix error

Made by accident, IDEA warned before committing, but as I always see some warnings there I just clicked without thinking
This commit is contained in:
Minecon724 2024-09-24 18:59:51 +02:00
parent b5482b8962
commit 158bd8f62b
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -3,7 +3,6 @@ package eu.m724.wtapi.provider.twilight.impl.approximate;
import eu.m724.wtapi.object.Coordinates;
import eu.m724.wtapi.object.Twilight;
import eu.m724.wtapi.provider.twilight.CacheableTwilightTimeProvider;
import eu.m724.wtapi.provider.twilight.TwilightTimeCache;
import java.time.Duration;
import java.time.LocalDate;
@ -37,7 +36,7 @@ public class ApproximateTwilightTimeProvider extends CacheableTwilightTimeProvid
double sunset = solarNoon + hourAngleDeg;
return new Twilight(
date,
cache.date(),
Duration.ofMillis((long) (sunrise * 60000)),
Duration.ofMillis((long) (sunset * 60000))
);