Tidy LAN level event forwarding

Forward level events to LAN players without redundant integer casts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-10 06:00:26 +02:00
parent 3eabcc6bd5
commit bce2872386
+2 -6
View File
@@ -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));
}
}
}