From bce2872386ea80dcf66c0c35aa3e0aec07c4ec6d Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Sat, 10 Oct 2026 06:00:26 +0200 Subject: [PATCH] Tidy LAN level event forwarding Forward level events to LAN players without redundant integer casts. Co-Authored-By: Claude Sonnet 5.5 --- crates/horizon-client/src/game/lan.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/horizon-client/src/game/lan.rs b/crates/horizon-client/src/game/lan.rs index b95e9f0df..7cce27dac 100644 --- a/crates/horizon-client/src/game/lan.rs +++ b/crates/horizon-client/src/game/lan.rs @@ -472,12 +472,8 @@ impl Game<'_> { } for e in events { if let horizon_world::level::LevelEvent::LevelEvent { id, pos, data } = e { - self.lan_events.push(( - *id as i32, - [pos.x, pos.y, pos.z], - *data as i32, - self.lan_acting, - )); + self.lan_events + .push((*id, [pos.x, pos.y, pos.z], *data, self.lan_acting)); } } }