clean up biome code
This commit is contained in:
committed by
Andrew Chin
parent
89d8e3653a
commit
22db7bb3cd
1
chunk.py
1
chunk.py
@@ -475,7 +475,6 @@ class ChunkRenderer(object):
|
||||
For cave mode, all blocks that have any direct sunlight are not
|
||||
rendered, and blocks are drawn with a color tint depending on their
|
||||
depth."""
|
||||
|
||||
blocks = self.blocks
|
||||
|
||||
if cave:
|
||||
|
||||
@@ -26,13 +26,6 @@ from PIL import Image, ImageEnhance, ImageOps
|
||||
import util
|
||||
import composite
|
||||
|
||||
sys.path.append("../python-gearman")
|
||||
|
||||
from gearman.client import GearmanClient
|
||||
|
||||
gmc = GearmanClient(["localhost"])
|
||||
|
||||
|
||||
def _find_file(filename, mode="rb"):
|
||||
"""Searches for the given file and returns an open handle to it.
|
||||
This searches the following locations in this order:
|
||||
@@ -582,7 +575,6 @@ def prepareBiomeData(worlddir, chunkX, chunkY):
|
||||
t.currentBiomeData = data
|
||||
return data
|
||||
|
||||
|
||||
# This set holds block ids that require special pre-computing. These are typically
|
||||
# things that require ancillary data to render properly (i.e. ladder plus orientation)
|
||||
special_blocks = set([66,59,61,62, 65,64,71,91,86])
|
||||
|
||||
Reference in New Issue
Block a user