Skip SkyLight update for Nether and End dimensions
This commit is contained in:
parent
32c1c44465
commit
c162faa262
@ -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])
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user