* @param time to use
* @param timeFactor unknown factor, use 1.0f
*/
public void updateCelestialTime(long time, float timeFactor) {
float celestial = MathHelper.getRealCelestialAngle(time, timeFactor);
WeatherSimulator weather = this.getWeatherSimulator();
if (weather != null) {
celestial = (float) ((double) celestial * (1.0d - (double) (weather.getRainStrength(timeFactor) * 5f) / 16d));
celestial = (float) ((double) celestial * (1.0d - (double) (weather.getThunderStrength(timeFactor) * 5f) / 16d));
}
getOwner().setSkyLight((byte) (celestial * (float) SKY_LIGHT_RANGE + MIN_SKY_LIGHT));
TimeUpdateEvent event = new TimeUpdateEvent(getOwner(), time);
for (Player player : getOwner().getPlayers()) {