moved lighting check from world object to quadtree object, where it should be now
This commit is contained in:
2
chunk.py
2
chunk.py
@@ -550,7 +550,7 @@ class ChunkRenderer(object):
|
||||
if not img:
|
||||
img = Image.new("RGBA", (384, 1728), (38,92,255,0))
|
||||
|
||||
if self.world.lighting:
|
||||
if self.quadtree.lighting:
|
||||
c_overviewer.render_loop_lighting(self, img, xoff, yoff, blockData_expanded)
|
||||
else:
|
||||
c_overviewer.render_loop(self, img, xoff, yoff, blockData_expanded)
|
||||
|
||||
@@ -157,7 +157,7 @@ def main():
|
||||
logging.info("Notice: Not using biome data for tinting")
|
||||
|
||||
# First do world-level preprocessing
|
||||
w = world.World(worlddir, useBiomeData=useBiomeData, lighting=options.lighting)
|
||||
w = world.World(worlddir, useBiomeData=useBiomeData)
|
||||
w.go(options.procs)
|
||||
|
||||
# create the quadtrees
|
||||
|
||||
3
world.py
3
world.py
@@ -67,10 +67,9 @@ class World(object):
|
||||
|
||||
mincol = maxcol = minrow = maxrow = 0
|
||||
|
||||
def __init__(self, worlddir, useBiomeData=False,regionlist=None, lighting=False):
|
||||
def __init__(self, worlddir, useBiomeData=False,regionlist=None):
|
||||
self.worlddir = worlddir
|
||||
self.useBiomeData = useBiomeData
|
||||
self.lighting = lighting
|
||||
|
||||
#find region files, or load the region list
|
||||
#this also caches all the region file header info
|
||||
|
||||
Reference in New Issue
Block a user