1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Minor fixes

This commit is contained in:
MirceaKitsune 2025-07-01 23:16:40 +03:00
parent 770ead7624
commit b3317fbe66
7 changed files with 21 additions and 21 deletions

View file

@ -1868,12 +1868,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.isSkybox()) {
if (params.isTextured()) {
pkt << (u16) params.textures.size();
for (const std::string &texture : params.textures)
pkt << texture;
}
if (params.isTransparent()) {
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;