For some reason yPos isn't centered. I don't know why.
This commit is contained in:
parent
2600f8fe81
commit
738292bbce
3 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ public class RenderBalloon extends Render
|
||||||
y -= RenderManager.renderPosY;
|
y -= RenderManager.renderPosY;
|
||||||
z -= RenderManager.renderPosZ;
|
z -= RenderManager.renderPosZ;
|
||||||
|
|
||||||
y += (balloon.latchedEntity.height/2) + 2.2F;
|
y += balloon.latchedEntity.height + 1.7F;
|
||||||
}
|
}
|
||||||
|
|
||||||
render(((EntityBalloon)entity).color, x, y, z);
|
render(((EntityBalloon)entity).color, x, y, z);
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class EntityBalloon extends Entity implements IEntityAdditionalSpawnData
|
||||||
this(entity.worldObj);
|
this(entity.worldObj);
|
||||||
|
|
||||||
latchedEntity = entity;
|
latchedEntity = entity;
|
||||||
setPosition(latchedEntity.posX, latchedEntity.posY + (latchedEntity.height/2) + 2.2F, latchedEntity.posZ);
|
setPosition(latchedEntity.posX, latchedEntity.posY + latchedEntity.height + 1.7F, latchedEntity.posZ);
|
||||||
|
|
||||||
prevPosX = posX;
|
prevPosX = posX;
|
||||||
prevPosY = posY;
|
prevPosY = posY;
|
||||||
|
@ -211,7 +211,7 @@ public class EntityBalloon extends Entity implements IEntityAdditionalSpawnData
|
||||||
latchedEntity.motionY = 0;
|
latchedEntity.motionY = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
setPosition(latchedEntity.posX, latchedEntity.posY + (latchedEntity.height/2) + 2.2F, latchedEntity.posZ);
|
setPosition(latchedEntity.posX, latchedEntity.posY + latchedEntity.height + 1.7F, latchedEntity.posZ);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class EntityRobit extends EntityCreature implements IInventory, ISustaine
|
||||||
{
|
{
|
||||||
super(world);
|
super(world);
|
||||||
|
|
||||||
setSize(0.3F, 0.3F);
|
setSize(0.5F, 0.5F);
|
||||||
|
|
||||||
getNavigator().setAvoidsWater(true);
|
getNavigator().setAvoidsWater(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue