mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +00:00
syncing cars when joining works now
This commit is contained in:
parent
ad15846625
commit
ebc0dba4ef
@ -454,10 +454,11 @@ impl Server {
|
||||
for client in &self.clients {
|
||||
let pid = client.id as usize;
|
||||
if pid != client_idx {
|
||||
let role = client.get_roles();
|
||||
for (vid, car) in &client.cars {
|
||||
self.clients[client_idx]
|
||||
.queue_packet(Packet::Raw(RawPacket::from_str(&format!(
|
||||
"Os:{}:{pid}-{vid}:{}",
|
||||
"Os:{role}:{}:{pid}-{vid}:{}",
|
||||
client.get_name(),
|
||||
car.car_json,
|
||||
))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user