Small change
This commit is contained in:
parent
f88506f654
commit
69ae8ed33e
1 changed files with 2 additions and 0 deletions
|
@ -30,12 +30,14 @@ public class CustomBackgroundRenderer {
|
||||||
FogType fogType = camera.getFluidInCamera();
|
FogType fogType = camera.getFluidInCamera();
|
||||||
|
|
||||||
if (fogType == FogType.WATER || fogType == FogType.LAVA || fogMode != FogMode.FOG_SKY) {
|
if (fogType == FogType.WATER || fogType == FogType.LAVA || fogMode != FogMode.FOG_SKY) {
|
||||||
|
BackgroundInfo.fogDensity = 1;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Entity entity = camera.getEntity();
|
Entity entity = camera.getEntity();
|
||||||
|
|
||||||
if (shouldIgnore(entity.level, (int) entity.getX(), (int) entity.getEyeY(), (int) entity.getZ())) {
|
if (shouldIgnore(entity.level, (int) entity.getX(), (int) entity.getEyeY(), (int) entity.getZ())) {
|
||||||
|
BackgroundInfo.fogDensity = 1;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue