Stop End flashes lighting the scene when Hide Lightning Flashes is on

Vanilla only adds the End flash to the sky light factor while the option is off. Horizon added it every time.
This commit is contained in:
Kacpherek
2026-10-26 22:40:27 +01:00
parent 0c7f6b7f0b
commit f2856845f4
+3 -2
View File
@@ -253,9 +253,10 @@ impl Game<'_> {
out
}
/// LightmapRenderStateExtractor: End flashes add to the sky light factor.
/// LightmapRenderStateExtractor: End flashes add to the sky light factor
/// unless Hide Lightning Flashes is on (the sky sprite is not gated).
pub(super) fn end_flash_sky(&self, sky: &mut horizon_client::environment::Sky, partial: f64) {
if self.dim == Dim::End {
if self.dim == Dim::End && !self.settings.file.bool("hideLightningFlashes") {
sky.sky_light_factor += self.end.flash.intensity(partial as f32);
}
}