Skip to content

Commit

Permalink
Do not render horizon with sky = false
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Sep 16, 2024
1 parent 422fad9 commit 81f2c3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ public void beginLevelRendering() {
// A lot of dimension mods touch sky rendering, FabricSkyboxes injects at HEAD and cancels, etc.
DimensionSpecialEffects.SkyType skyType = Minecraft.getInstance().level.effects().skyType();

if (skyType == DimensionSpecialEffects.SkyType.NORMAL || Minecraft.getInstance().level.dimensionType().hasSkyLight()) {
if (shouldRenderSkyDisc && (skyType == DimensionSpecialEffects.SkyType.NORMAL || Minecraft.getInstance().level.dimensionType().hasSkyLight())) {
RenderSystem.depthMask(false);

RenderSystem.setShaderColor(fogColor.x, fogColor.y, fogColor.z, fogColor.w);
Expand Down

0 comments on commit 81f2c3c

Please sign in to comment.