geforkt von Mirrors/Paper
SPIGOT-3807: Improve getEyeHeight
Dieser Commit ist enthalten in:
Ursprung
aa34e9bddd
Commit
9ab298de7b
@ -126,7 +126,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
|||||||
return getHandle().getHeadHeight();
|
return getHandle().getHeadHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getEyeHeight(boolean ignoreSneaking) {
|
public double getEyeHeight(boolean ignorePose) {
|
||||||
return getEyeHeight();
|
return getEyeHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,20 +131,11 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public double getEyeHeight() {
|
public double getEyeHeight(boolean ignorePose) {
|
||||||
return getEyeHeight(false);
|
if (ignorePose) {
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public double getEyeHeight(boolean ignoreSneaking) {
|
|
||||||
if (ignoreSneaking) {
|
|
||||||
return 1.62D;
|
return 1.62D;
|
||||||
} else {
|
} else {
|
||||||
if (isSneaking()) {
|
return getEyeHeight();
|
||||||
return 1.54D;
|
|
||||||
} else {
|
|
||||||
return 1.62D;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren