mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Merge d599380f1d
into 499f2284bd
This commit is contained in:
commit
4f9def7adf
8 changed files with 109 additions and 84 deletions
|
@ -1912,11 +1912,12 @@ void Server::SendSetSky(session_t peer_id, const SkyboxParams ¶ms)
|
|||
<< 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue