1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00
This commit is contained in:
Mircea Kitsune 2025-09-29 21:41:52 +03:00 committed by GitHub
commit 4f9def7adf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 109 additions and 84 deletions

View file

@ -1912,11 +1912,12 @@ void Server::SendSetSky(session_t peer_id, const SkyboxParams &params)
<< params.clouds << params.fog_sun_tint
<< params.fog_moon_tint << params.fog_tint_type;
if (params.type == "skybox") {
if (params.isTextured()) {
pkt << (u16) params.textures.size();
for (const std::string &texture : params.textures)
pkt << texture;
} else if (params.type == "regular") {
}
if (params.hasAlpha()) {
auto &c = params.sky_color;
pkt << c.day_sky << c.day_horizon << c.dawn_sky << c.dawn_horizon
<< c.night_sky << c.night_horizon << c.indoors;