the original allChunks will be modified, so make a list first
This commit is contained in:
parent
8b3fa2f163
commit
b1c6d2e0fa
2
mce.py
2
mce.py
@ -729,7 +729,7 @@ class mce(object):
|
|||||||
box = self.readBox(command)
|
box = self.readBox(command)
|
||||||
|
|
||||||
i=0;
|
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:
|
if cx < box.mincx or cx >= box.maxcx or cz < box.mincz or cz >= box.maxcz:
|
||||||
self.level.deleteChunk(cx,cz)
|
self.level.deleteChunk(cx,cz)
|
||||||
i+=1;
|
i+=1;
|
||||||
|
Reference in New Issue
Block a user