Fixed lod's being rendered underwater

This commit is contained in:
coolGi
2023-10-13 23:25:03 +10:30
parent 31971e03db
commit 4b14fe82e7
2 changed files with 3 additions and 2 deletions
@@ -264,9 +264,9 @@ public class RenderUtil
return false; //Level is not ready yet.
}
if (MC_RENDER.playerHasBlindingEffect())
if (MC_RENDER.isFogStateSpecial())
{
// if the player is blind, don't render LODs,
// if the player is blind/under-water, don't render LODs,
// and don't change minecraft's fog
// which blindness relies on.
return false;
@@ -62,6 +62,7 @@ public interface IMinecraftRenderWrapper extends IBindable
default Color getSpecialFogColor(float partialTicks) { return getFogColor(partialTicks); }
/** Unless you really need to know if the player is blind, use {@link IMinecraftRenderWrapper#isFogStateSpecial()} instead */
boolean isFogStateSpecial();
Color getSkyColor();