1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00

Fix ClassCastException

This commit is contained in:
Aurora
2025-12-12 21:41:17 +00:00
parent 4d04c561f7
commit def5c97e77

View File

@@ -276,7 +276,7 @@ public final class BedrockPlayerAuthInputTranslator extends PacketTranslator<Pla
session.getInputCache().setJumpingTicks(-10); session.getInputCache().setJumpingTicks(-10);
session.getPlayerEntity().setVehicleJumpStrength(finalVehicleJumpStrength); session.getPlayerEntity().setVehicleJumpStrength(finalVehicleJumpStrength);
if (((AbstractHorseEntity) vehicle).getVehicleComponent() instanceof HorseVehicleComponent horseVehicleComponent) { if (vehicle instanceof AbstractHorseEntity horse && horse.getVehicleComponent() instanceof HorseVehicleComponent horseVehicleComponent) {
horseVehicleComponent.setAllowStandSliding(true); horseVehicleComponent.setAllowStandSliding(true);
} }
} else if (!wasJumping && holdingJump) { } else if (!wasJumping && holdingJump) {