Fixed #261 client crash in unknown dimension

This commit is contained in:
LemADEC 2017-05-13 14:50:35 +02:00
parent 6ff9966d4a
commit f512ddc887

View file

@ -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;
}