Fixed: Incorrect SpawnPotentials structure when adjusting spawn positions during copy and import.
Described in mcedit/mcedit#347
This commit is contained in:
parent
3dcd449e68
commit
66c934725f
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user