Skip to content

Commit

Permalink
Fixed: Incorrect SpawnPotentials structure when adjusting spawn posit…
Browse files Browse the repository at this point in the history
…ions during copy and import.

Described in mcedit/mcedit#347
  • Loading branch information
codewarrior0 committed Apr 21, 2013
1 parent 3dcd449 commit 66c9347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entity.py
Expand Up @@ -103,15 +103,15 @@ def copyWithOffset(cls, tileEntity, copyOffset):
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:
pos = Entity.pos(mob)
pos = [p + o for p, o in zip(pos, copyOffset)]

Entity.setpos(mob, pos)

if eTag['id'].value == "Control":
command = eTag['Command'].value

Expand Down

0 comments on commit 66c9347

Please sign in to comment.