For some reason yPos isn't centered. I don't know why.

This commit is contained in:
Aidan C. Brady 2014-01-08 15:23:15 -05:00
parent 2600f8fe81
commit 738292bbce
3 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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);
} }
} }

View file

@ -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);