skip position-less entities in removeEntities too

This commit is contained in:
David Vierra 2011-05-01 10:43:15 -10:00
parent 9ca56ea596
commit 20223cae8e

View File

@ -1154,6 +1154,7 @@ class MCLevel(object):
if not hasattr(self, "TileEntities"): return; if not hasattr(self, "TileEntities"): return;
newEnts = []; newEnts = [];
for ent in self.TileEntities: 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: if map(lambda x:x.value, (ent[a] for a in "xyz")) in box:
continue; continue;
newEnts.append(ent); newEnts.append(ent);