summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-04-26 16:44:15 +0200
committerHowaner <franzi.moos@googlemail.com>2014-04-26 16:44:15 +0200
commit49f6819829b437f776ea08f50c92cc506ee9ddcb (patch)
tree34c7018d226f2fc29e9eea604a043554abd43a39 /src/Protocol
parentChange m_InvulnerableTicks description again again :D (diff)
downloadcuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar
cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar.gz
cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar.bz2
cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar.lz
cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar.xz
cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.tar.zst
cuberite-49f6819829b437f776ea08f50c92cc506ee9ddcb.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/Protocol125.cpp2
-rw-r--r--src/Protocol/Protocol17x.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol125.cpp b/src/Protocol/Protocol125.cpp
index 3282a827f..a23afb29a 100644
--- a/src/Protocol/Protocol125.cpp
+++ b/src/Protocol/Protocol125.cpp
@@ -2013,7 +2013,7 @@ void cProtocol125::WriteMobMetadata(const cMonster & a_Mob)
case cMonster::mtWither:
{
WriteByte(0x54); // Int at index 20
- WriteInt((Int32)((const cWither &)a_Mob).GetNumInvulnerableTicks());
+ WriteInt((Int32)((const cWither &)a_Mob).GetWitherInvulnerableTicks());
WriteByte(0x66); // Float at index 6
WriteFloat((float)(a_Mob.GetHealth()));
break;
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index e57b551cb..80b161e3e 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -2820,7 +2820,7 @@ void cProtocol172::cPacketizer::WriteMobMetadata(const cMonster & a_Mob)
case cMonster::mtWither:
{
WriteByte(0x54); // Int at index 20
- WriteInt(((const cWither &)a_Mob).GetNumInvulnerableTicks());
+ WriteInt(((const cWither &)a_Mob).GetWitherInvulnerableTicks());
WriteByte(0x66); // Float at index 6
WriteFloat((float)(a_Mob.GetHealth()));
break;