The Undergarden

The Undergarden

22M Downloads

Use forge event's fog handlers instead of RenderSystem calls

AlexModGuy opened this issue ยท 0 comments

commented

https://github.com/quek04/The-Undergarden/blob/1.20/src/main/java/quek/undergarden/client/UndergardenClient.java#L239

To improve compatibility (such as with mods like Alex's Caves, see AlexModGuy/AlexsCaves#729), calls to
RenderSystem.setShaderFogStart() should be replaced with event.setNearPlaneDistance() and RenderSystem.setShaderFogEnd() should be replaced with event.setFarPlaneDistance() . The event should also be canceled to notify the forge pipeline that the fog behavior has changed.