Fix camel jump cooldown (#5161)

This commit is contained in:
AJ Ferguson 2024-11-22 07:33:32 -05:00 committed by GitHub
parent abf68604be
commit 2ebce9c5c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -250,7 +250,7 @@ public final class BedrockPlayerAuthInputTranslator extends PacketTranslator<Pla
}
}
if (vehicle instanceof AbstractHorseEntity) {
if (vehicle instanceof AbstractHorseEntity && !vehicle.getFlag(EntityFlag.HAS_DASH_COOLDOWN)) {
// Behavior verified as of Java Edition 1.21.3
int currentJumpingTicks = session.getInputCache().getJumpingTicks();
if (currentJumpingTicks < 0) {