Fixed #261 client crash in unknown dimension
This commit is contained in:
parent
6ff9966d4a
commit
f512ddc887
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ public class RenderOverlayAir {
|
|||
|
||||
// get celestial object
|
||||
final CelestialObject celestialObject = StarMapRegistry.getCelestialObject(entityPlayer.dimension, x, z);
|
||||
if (celestialObject.hasAtmosphere()) {// skip (no display) if environment is breathable
|
||||
if (celestialObject == null || celestialObject.hasAtmosphere()) {// skip (no display) if environment is breathable
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue