diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index 425919cdaf..bf4428e1c7 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java @@ -126,7 +126,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity { return getHandle().getHeadHeight(); } - public double getEyeHeight(boolean ignoreSneaking) { + public double getEyeHeight(boolean ignorePose) { return getEyeHeight(); } diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 9405e6b4d7..20059b9456 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -131,20 +131,11 @@ public class CraftPlayer extends CraftHumanEntity implements Player { } @Override - public double getEyeHeight() { - return getEyeHeight(false); - } - - @Override - public double getEyeHeight(boolean ignoreSneaking) { - if (ignoreSneaking) { + public double getEyeHeight(boolean ignorePose) { + if (ignorePose) { return 1.62D; } else { - if (isSneaking()) { - return 1.54D; - } else { - return 1.62D; - } + return getEyeHeight(); } }