Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

Boats: keep the ticked list only while a mod hears the ticks

Ludovic Marieae295952ce71
diff --git a/crates/horizon-client/src/game/boats.rs b/crates/horizon-client/src/game/boats.rs
index 630599622..270cd31ec 100644
--- a/crates/horizon-client/src/game/boats.rs
+++ b/crates/horizon-client/src/game/boats.rs
@@ -725,7 +725,7 @@ impl Game<'_> {
let driven = self.guest_vehicles();
// EntityTickEvent.Post comes once AbstractBoat.tick is over, after the
// passes below (lava, ejection, bubbles, contacts): the ticked boats,
- // in order.
+ // in order, kept only while a mod listens (no list without mods).
let mut ticked = Vec::new();
for i in 0..self.boats.len() {
// A mod's hook may have removed boats.
@@ -763,7 +763,9 @@ impl Game<'_> {
};
let b = self.boats[i].clone();
self.boats[i] = self.tick_boat(b, false);
- ticked.push((id, kind));
+ if round.listening() {
+ ticked.push((id, kind));
+ }
}
// AbstractBoat.tick's applyEffectsFromBlocks, on the server for every
// boat, the client-driven ones too.