the original allChunks will be modified, so make a list first

This commit is contained in:
David Vierra 2010-12-03 18:07:14 -10:00
parent 8b3fa2f163
commit b1c6d2e0fa

2
mce.py
View File

@ -729,7 +729,7 @@ class mce(object):
box = self.readBox(command)
i=0;
for cx,cz in self.level.allChunks:
for cx,cz in list(self.level.allChunks):
if cx < box.mincx or cx >= box.maxcx or cz < box.mincz or cz >= box.maxcz:
self.level.deleteChunk(cx,cz)
i+=1;