Fixed: Incorrect SpawnPotentials structure when adjusting spawn positions during copy and import.

Described in mcedit/mcedit#347
This commit is contained in:
David Vierra 2013-04-20 16:02:10 -10:00
parent 3dcd449e68
commit 66c934725f

View File

@ -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