From 20223cae8edfc47a8723642315d6b1c7b58ff198 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sun, 1 May 2011 10:43:15 -1000 Subject: [PATCH] skip position-less entities in removeEntities too --- mclevel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mclevel.py b/mclevel.py index 8077820..a2afb9c 100644 --- a/mclevel.py +++ b/mclevel.py @@ -1154,6 +1154,7 @@ class MCLevel(object): if not hasattr(self, "TileEntities"): return; newEnts = []; for ent in self.TileEntities: + if not "x" in ent: continue if map(lambda x:x.value, (ent[a] for a in "xyz")) in box: continue; newEnts.append(ent);