Use self.dirbits instead of dirbits
This commit is contained in:
2
chunk.py
2
chunk.py
@@ -304,7 +304,7 @@ class ChunkRenderer(object):
|
|||||||
def find_oldimage(self, cave):
|
def find_oldimage(self, cave):
|
||||||
# Get the name of the existing image.
|
# Get the name of the existing image.
|
||||||
oldimg = oldimg_path = None
|
oldimg = oldimg_path = None
|
||||||
key = ".".join((dirbits[0], dirbits[1], self.blockid, "cave" if cave else "nocave"))
|
key = ".".join((self.dirbits[0], self.dirbits[1], self.blockid, "cave" if cave else "nocave"))
|
||||||
if key in self.world.cached:
|
if key in self.world.cached:
|
||||||
oldimg_path = self.world.cached[key]
|
oldimg_path = self.world.cached[key]
|
||||||
_, oldimg = os.path.split(oldimg_path)
|
_, oldimg = os.path.split(oldimg_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user