1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Allow to set maximum star opacity at daytime (#11663)

This commit is contained in:
Wuzzy 2022-07-02 18:57:48 +00:00 committed by GitHub
parent b095dc4f2b
commit 142928e944
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 24 additions and 4 deletions

View file

@ -1340,10 +1340,13 @@ void Client::handleCommand_HudSetMoon(NetworkPacket *pkt)
void Client::handleCommand_HudSetStars(NetworkPacket *pkt)
{
StarParams stars;
StarParams stars = SkyboxDefaults::getStarDefaults();
*pkt >> stars.visible >> stars.count
>> stars.starcolor >> stars.scale;
try {
*pkt >> stars.day_opacity;
} catch (PacketError &e) {};
ClientEvent *event = new ClientEvent();
event->type = CE_SET_STARS;

View file

@ -735,6 +735,7 @@ enum ToClientCommand
u32 count
u8[4] starcolor (ARGB)
f32 scale
f32 day_opacity
*/
TOCLIENT_SRP_BYTES_S_B = 0x60,