Fixed: Error when rolling an object.

Need to pass None to dict.pop to avoid the error.
This commit is contained in:
David Vierra 2013-01-30 23:40:18 -10:00
parent 2e43477ae1
commit 72b874c82e

View File

@ -260,7 +260,7 @@ class MCSchematic (EntityLevel):
def roll(self):
" xxx rotate stuff - destroys biomes"
self.root_tag.pop('Biomes')
self.root_tag.pop('Biomes', None)
self._Blocks = swapaxes(self._Blocks, 2, 0)[:, :, ::-1] # x=y; y=-x
self.root_tag["Data"].value = swapaxes(self.root_tag["Data"].value, 2, 0)[:, :, ::-1]