Skip to content

Commit

Permalink
change: Fix mixin error in production cause by remap
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashyReese committed Jun 8, 2024
1 parent be38af9 commit 8d9e4e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private static void modifyColors(Camera camera, float tickDelta, ClientLevel wor
}
}

@Redirect(method = "levelFogColor", at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/systems/RenderSystem;setShaderFogColor(FFF)V"), remap = false)
@Redirect(method = "levelFogColor", at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/systems/RenderSystem;setShaderFogColor(FFF)V"))
private static void redirectSetShaderFogColor(float red, float green, float blue) {
float initialFogDensity = 1.0F; // Vanilla's default is 1F
float fogDensity = Utils.alphaBlendFogDensity(SkyboxManager.getInstance().getActiveSkyboxes(), initialFogDensity);
Expand Down

0 comments on commit 8d9e4e4

Please sign in to comment.