Fog Looks Good Now

Fog Looks Good Now

722k Downloads

Use forge event's cancellable to improve mod compatiblity.

AlexModGuy opened this issue ยท 0 comments

commented

https://github.com/birsy/Fog-Looks-Good-Now/blob/main/src/main/java/birsy/foglooksgoodnow/client/ClientEvents.java#L35

To improve compatibility (such as with mods like Alex's Caves, see AlexModGuy/AlexsCaves#297), 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.