Increase time required before a pony will lie down

This commit is contained in:
Sollace 2024-02-09 19:24:49 +00:00
parent 8687ec443b
commit 7ad3ab236a
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -154,7 +154,7 @@ public class ModelAttributes {
isLyingDown = isSleeping; isLyingDown = isSleeping;
if (entity instanceof PlayerEntity) { if (entity instanceof PlayerEntity) {
boolean moving = entity.getVelocity().multiply(1, 0, 1).length() == 0 && entity.isSneaking(); 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); isCrouching = !isLyingDown && !isSitting && mode == Mode.THIRD_PERSON && PonyPosture.isCrouching(pony, entity);