summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_8.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2022-01-14 19:21:10 +0100
committerAlexander Harkness <me@bearbin.net>2022-01-14 20:43:29 +0100
commitda0fdbe113e9b3a5254822a20a8ca2595cd661cb (patch)
treeb12753160572310ac7a6878319cca5afe728e2d6 /src/Protocol/Protocol_1_8.cpp
parenteblockface (diff)
downloadcuberite-da0fdbe113e9b3a5254822a20a8ca2595cd661cb.tar
cuberite-da0fdbe113e9b3a5254822a20a8ca2595cd661cb.tar.gz
cuberite-da0fdbe113e9b3a5254822a20a8ca2595cd661cb.tar.bz2
cuberite-da0fdbe113e9b3a5254822a20a8ca2595cd661cb.tar.lz
cuberite-da0fdbe113e9b3a5254822a20a8ca2595cd661cb.tar.xz
cuberite-da0fdbe113e9b3a5254822a20a8ca2595cd661cb.tar.zst
cuberite-da0fdbe113e9b3a5254822a20a8ca2595cd661cb.zip
Diffstat (limited to 'src/Protocol/Protocol_1_8.cpp')
-rw-r--r--src/Protocol/Protocol_1_8.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp
index 71f5b16fe..1308f1826 100644
--- a/src/Protocol/Protocol_1_8.cpp
+++ b/src/Protocol/Protocol_1_8.cpp
@@ -513,7 +513,7 @@ void cProtocol_1_8_0::SendEntityAnimation(const cEntity & a_Entity, const Entity
return;
}
- if (const auto AnimationID = GetProtocolEntityAnimation(a_Animation); AnimationID != unsigned char(-1))
+ if (const auto AnimationID = GetProtocolEntityAnimation(a_Animation); AnimationID != static_cast<unsigned char>(-1))
{
cPacketizer Pkt(*this, pktEntityAnimation);
Pkt.WriteVarInt32(a_Entity.GetUniqueID());
@@ -1978,7 +1978,7 @@ unsigned char cProtocol_1_8_0::GetProtocolEntityAnimation(const EntityAnimation
case EntityAnimation::PlayerLeavesBed: return 2;
case EntityAnimation::PlayerMainHandSwings: return 0;
case EntityAnimation::PlayerOffHandSwings: return 0;
- default: return unsigned char(-1);
+ default: return static_cast<unsigned char>(-1);
}
}