Skip SkyLight update for Nether and End dimensions

This commit is contained in:
David Vierra 2015-09-28 20:52:24 -10:00
parent 32c1c44465
commit c162faa262
2 changed files with 6 additions and 1 deletions

View File

@ -373,6 +373,7 @@ def updateLightsByCoord(dim, x, y, z):
ctx = RelightCtx(dim)
if dim.hasSkyLight:
updateSkyLight(ctx, ax, ay, az)
for i in range(<size_t>len(ax)):

View File

@ -666,6 +666,10 @@ class WorldEditorDimension(object):
def hasLights(self):
return self.adapter.hasLights
@property
def hasSkyLight(self):
return self.dimName not in ("DIM1", "DIM-1")
# --- Bounds ---
_bounds = None