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:
parent
b5482b8962
commit
158bd8f62b
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@ package eu.m724.wtapi.provider.twilight.impl.approximate;
|
||||||
import eu.m724.wtapi.object.Coordinates;
|
import eu.m724.wtapi.object.Coordinates;
|
||||||
import eu.m724.wtapi.object.Twilight;
|
import eu.m724.wtapi.object.Twilight;
|
||||||
import eu.m724.wtapi.provider.twilight.CacheableTwilightTimeProvider;
|
import eu.m724.wtapi.provider.twilight.CacheableTwilightTimeProvider;
|
||||||
import eu.m724.wtapi.provider.twilight.TwilightTimeCache;
|
|
||||||
|
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
|
@ -37,7 +36,7 @@ public class ApproximateTwilightTimeProvider extends CacheableTwilightTimeProvid
|
||||||
double sunset = solarNoon + hourAngleDeg;
|
double sunset = solarNoon + hourAngleDeg;
|
||||||
|
|
||||||
return new Twilight(
|
return new Twilight(
|
||||||
date,
|
cache.date(),
|
||||||
Duration.ofMillis((long) (sunrise * 60000)),
|
Duration.ofMillis((long) (sunrise * 60000)),
|
||||||
Duration.ofMillis((long) (sunset * 60000))
|
Duration.ofMillis((long) (sunset * 60000))
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue