aboutsummaryrefslogtreecommitdiff
path: root/src/network/clientpackethandler.cpp
diff options
context:
space:
mode:
authorlhofhansl <larsh@apache.org>2022-12-25 16:15:32 -0800
committerGitHub <noreply@github.com>2022-12-25 16:15:32 -0800
commit1e7804aaf66e2c2a81f81267923621dea17cb274 (patch)
tree15de0319b559a7679659d66b2b389d71e97352b6 /src/network/clientpackethandler.cpp
parentafd5caa26a2352c912e1a1976b59e1f89773cdec (diff)
downloadminetest-1e7804aaf66e2c2a81f81267923621dea17cb274.tar.xz
Allow saturation to be controlled by the server. (#13075)
Diffstat (limited to 'src/network/clientpackethandler.cpp')
-rw-r--r--src/network/clientpackethandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp
index 9044e6e35..a98fa0733 100644
--- a/src/network/clientpackethandler.cpp
+++ b/src/network/clientpackethandler.cpp
@@ -1764,4 +1764,6 @@ void Client::handleCommand_SetLighting(NetworkPacket *pkt)
if (pkt->getRemainingBytes() >= 4)
*pkt >> lighting.shadow_intensity;
+ if (pkt->getRemainingBytes() >= 4)
+ *pkt >> lighting.saturation;
}