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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user