mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Fixed bug with balloons moving with entities
This commit is contained in:
1 parent
4395f3aa10
commit
ddae9ed34b
1 file changed
+2
-4
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user