diff --git a/renderer.py b/renderer.py index 205dd4a..2d8ad70 100644 --- a/renderer.py +++ b/renderer.py @@ -948,7 +948,7 @@ class TileTicksRenderer(EntityRendererGeneric): layer = Layer.TileTicks 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"] if len(ticks): self.vertexArrays.append(self._computeVertices([[t[i].value for i in "xyz"] for t in ticks],