From 66c934725f1daac641d82e452e1f6a1a2f432815 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sat, 20 Apr 2013 16:02:10 -1000 Subject: [PATCH] Fixed: Incorrect SpawnPotentials structure when adjusting spawn positions during copy and import. Described in mcedit/mcedit#347 --- entity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entity.py b/entity.py index 453b07f..398b477 100644 --- a/entity.py +++ b/entity.py @@ -103,7 +103,7 @@ class TileEntity(object): mobs.append(mob) potentials = eTag.get('SpawnPotentials') if potentials: - mobs.extend(potentials) + mobs.extend(p["Properties"] for p in potentials) for mob in mobs: if "Pos" in mob: @@ -111,7 +111,7 @@ class TileEntity(object): pos = [p + o for p, o in zip(pos, copyOffset)] Entity.setpos(mob, pos) - + if eTag['id'].value == "Control": command = eTag['Command'].value