mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-19 14:59:27 +00:00
Fix ClassCastException
This commit is contained in:
@@ -276,7 +276,7 @@ public final class BedrockPlayerAuthInputTranslator extends PacketTranslator<Pla
|
||||
session.getInputCache().setJumpingTicks(-10);
|
||||
session.getPlayerEntity().setVehicleJumpStrength(finalVehicleJumpStrength);
|
||||
|
||||
if (((AbstractHorseEntity) vehicle).getVehicleComponent() instanceof HorseVehicleComponent horseVehicleComponent) {
|
||||
if (vehicle instanceof AbstractHorseEntity horse && horse.getVehicleComponent() instanceof HorseVehicleComponent horseVehicleComponent) {
|
||||
horseVehicleComponent.setAllowStandSliding(true);
|
||||
}
|
||||
} else if (!wasJumping && holdingJump) {
|
||||
|
||||
Reference in New Issue
Block a user