Use forge event's cancellable to improve mod compatiblity.
AlexModGuy opened this issue ยท 0 comments
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.