i have absolutely no idea why this function gets called on a malformed chunk that was already culled, but whatever

This commit is contained in:
David Vierra 2010-10-12 14:05:23 -10:00
parent bdd85b7336
commit acfe936056

View File

@ -2402,7 +2402,8 @@ class MCInfdevOldLevel(MCLevel):
def malformedChunk(self, cx, cz):
debug( "Forgetting malformed chunk {0} ({1})".format((cx,cz), self.chunkFilename(cx,cz)) )
del self._presentChunks[(cx,cz)]
if (cx,cz) in self._presentChunks:
del self._presentChunks[(cx,cz)]
def createChunk(self, cx, cz):
if (cx,cz) in self._presentChunks: raise ValueError, "{0}:Chunk {1} already present!".format(self, (cx,cz) )