Increase time required before a pony will lie down

This commit is contained in:
Sollace 2024-02-09 19:24:49 +00:00
parent 475e96726e
commit 387c9307d0
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -155,7 +155,7 @@ public class ModelAttributes {
isLyingDown = isSleeping;
if (entity instanceof PlayerEntity) {
boolean moving = entity.getVelocity().multiply(1, 0, 1).length() == 0 && entity.isSneaking();
isLyingDown |= getMainInterpolator().interpolate("lyingDown", moving ? 10 : 0, 10) >= 9;
isLyingDown |= getMainInterpolator().interpolate("lyingDown", moving ? 10 : 0, 200) >= 9;
}
isCrouching = !isLyingDown && !isSitting && mode == Mode.THIRD_PERSON && PonyPosture.isCrouching(pony, entity);