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,7 +373,8 @@ def updateLightsByCoord(dim, x, y, z):
ctx = RelightCtx(dim) ctx = RelightCtx(dim)
updateSkyLight(ctx, ax, ay, az) if dim.hasSkyLight:
updateSkyLight(ctx, ax, ay, az)
for i in range(<size_t>len(ax)): for i in range(<size_t>len(ax)):
updateLights(ctx, ax[i], ay[i], az[i]) updateLights(ctx, ax[i], ay[i], az[i])

View File

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