Fixed bug with balloons moving with entities
This commit is contained in:
parent
4395f3aa10
commit
ddae9ed34b
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue