From 72b874c82e457f492cf5451fa43b776a7f22866b Mon Sep 17 00:00:00 2001 From: David Vierra Date: Wed, 30 Jan 2013 23:40:18 -1000 Subject: [PATCH] Fixed: Error when rolling an object. Need to pass None to dict.pop to avoid the error. --- schematic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schematic.py b/schematic.py index bcbeb79..c85382a 100644 --- a/schematic.py +++ b/schematic.py @@ -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]