Fixed bug with balloons moving with entities

This commit is contained in:
Aidan C. Brady 2014-01-07 23:55:17 -05:00
parent 4395f3aa10
commit ddae9ed34b

View file

@ -104,7 +104,7 @@ public class EntityBalloon extends Entity implements IEntityAdditionalSpawnData
@Override
public void onUpdate()
{
{
prevPosX = posX;
prevPosY = posY;
prevPosZ = posZ;
@ -196,9 +196,7 @@ public class EntityBalloon extends Entity implements IEntityAdditionalSpawnData
}
else if(latchedEntity != null && latchedEntity.getHealth() > 0)
{
posX = latchedEntity.posX;
posY = latchedEntity.posY + 3F;
posZ = latchedEntity.posZ;
setPosition(posX = latchedEntity.posX, posY = latchedEntity.posY + 3F, posZ = latchedEntity.posZ);
}
}