Fixed: PE world not appearing when Show->TileTicks is enabled. Fixes #211

This commit is contained in:
David Vierra 2012-12-09 12:18:00 -10:00
parent a4aab9f2fb
commit b0b8813022

View File

@ -948,7 +948,7 @@ class TileTicksRenderer(EntityRendererGeneric):
layer = Layer.TileTicks layer = Layer.TileTicks
def makeChunkVertices(self, chunk): def makeChunkVertices(self, chunk):
if "Level" in chunk.root_tag and "TileTicks" in chunk.root_tag["Level"]: if chunk.root_tag and "Level" in chunk.root_tag and "TileTicks" in chunk.root_tag["Level"]:
ticks = chunk.root_tag["Level"]["TileTicks"] ticks = chunk.root_tag["Level"]["TileTicks"]
if len(ticks): if len(ticks):
self.vertexArrays.append(self._computeVertices([[t[i].value for i in "xyz"] for t in ticks], self.vertexArrays.append(self._computeVertices([[t[i].value for i in "xyz"] for t in ticks],