Fixed lod's being rendered underwater
This commit is contained in:
@@ -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;
|
||||
|
||||
+1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user