mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-25 21:40:09 +00:00
wip syncing of vehicles when joining
This commit is contained in:
1 parent
e1b9f2b969
commit
ad15846625
1 file changed
+2
-1
+2
-1
@@ -457,7 +457,8 @@ impl Server {
|
|||||||
for (vid, car) in &client.cars {
|
for (vid, car) in &client.cars {
|
||||||
self.clients[client_idx]
|
self.clients[client_idx]
|
||||||
.queue_packet(Packet::Raw(RawPacket::from_str(&format!(
|
.queue_packet(Packet::Raw(RawPacket::from_str(&format!(
|
||||||
"Os:{vid}:{}",
|
"Os:{}:{pid}-{vid}:{}",
|
||||||
|
client.get_name(),
|
||||||
car.car_json,
|
car.car_json,
|
||||||
))))
|
))))
|
||||||
.await;
|
.await;
|
||||||
|
|||||||
Reference in new issue
Block a user