/ride dismount: the boats' BOARDING_COOLDOWN, not a second 60

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-25 17:40:41 +01:00
parent f48cfb7966
commit 8c54e18587
2 changed files with 2 additions and 2 deletions
@@ -13,7 +13,7 @@ use horizon_client::{
use horizon_core::geometry::{Aabb, Vec3};
/// `Entity.boardingCooldown` once a mob leaves its boat.
const BOARDING_COOLDOWN: i32 = 60;
pub(super) const BOARDING_COOLDOWN: i32 = 60;
/// `Player.DEFAULT_VEHICLE_ATTACHMENT`: how far below the seat a player's
/// feet are.
const PLAYER_RIDING_OFFSET: f64 = 0.6;
@@ -1191,7 +1191,7 @@ impl Game<'_> {
};
let m = &mut self.mobs[i];
m.extra.passenger = false;
m.extra.boarding_cooldown = 60;
m.extra.boarding_cooldown = super::super::boat_passengers::BOARDING_COOLDOWN;
m.position = at;
m.previous = at;
}