1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
This commit is contained in:
DragonWrangler1 2025-06-27 12:34:59 +07:00 committed by GitHub
commit 02f32443ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 419 additions and 1 deletions

View file

@ -1909,7 +1909,20 @@ void Server::SendSetStars(session_t peer_id, const StarParams &params)
pkt << params.visible << params.count
<< params.starcolor << params.scale
<< params.day_opacity;
<< params.day_opacity
<< params.shooting_stars_enabled
<< params.shooting_star_chance
<< params.shooting_star_speed
<< params.shooting_star_size;
// Send the number of colors first
u16 color_count = params.shooting_star_colors.size();
pkt << color_count;
// Then send each color
for (const auto &color : params.shooting_star_colors) {
pkt << color;
}
Send(&pkt);
}