Skip to content

Commit

Permalink
Fixed eye height
Browse files Browse the repository at this point in the history
  • Loading branch information
ata4 committed Aug 13, 2014
1 parent c5a1a3b commit 3ad9c4c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,12 @@ public boolean isBreedingItem(ItemStack item) {
*/
@Override
public float getEyeHeight() {
float eyeHeight = height;

eyeHeight *= 2 + getHealthRelative() * 2;

float eyeHeight = super.getEyeHeight();

if (isSitting()) {
eyeHeight *= 0.8f;
}

return eyeHeight;
}

Expand Down

0 comments on commit 3ad9c4c

Please sign in to comment.