summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol125.cpp
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-03-25 09:32:58 +0100
committerandrew <xdotftw@gmail.com>2014-03-25 09:32:58 +0100
commit0fe1e50ffc744d861744e4aa4905e1b4b15e10fd (patch)
tree20bb1e5c88cf412a3b3edb2608c4aedb6c1e5497 /src/Protocol/Protocol125.cpp
parentMinor fixes (diff)
downloadcuberite-0fe1e50ffc744d861744e4aa4905e1b4b15e10fd.tar
cuberite-0fe1e50ffc744d861744e4aa4905e1b4b15e10fd.tar.gz
cuberite-0fe1e50ffc744d861744e4aa4905e1b4b15e10fd.tar.bz2
cuberite-0fe1e50ffc744d861744e4aa4905e1b4b15e10fd.tar.lz
cuberite-0fe1e50ffc744d861744e4aa4905e1b4b15e10fd.tar.xz
cuberite-0fe1e50ffc744d861744e4aa4905e1b4b15e10fd.tar.zst
cuberite-0fe1e50ffc744d861744e4aa4905e1b4b15e10fd.zip
Diffstat (limited to 'src/Protocol/Protocol125.cpp')
-rw-r--r--src/Protocol/Protocol125.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Protocol/Protocol125.cpp b/src/Protocol/Protocol125.cpp
index 69f4934d8..d8b340350 100644
--- a/src/Protocol/Protocol125.cpp
+++ b/src/Protocol/Protocol125.cpp
@@ -1972,6 +1972,14 @@ void cProtocol125::WriteMobMetadata(const cMonster & a_Mob)
WriteByte(((const cWitch &)a_Mob).IsAngry() ? 1 : 0); // Aggravated? Doesn't seem to do anything
break;
}
+ case cMonster::mtWither:
+ {
+ WriteByte(0x54); // Int at index 20
+ WriteInt(((const cWither &)a_Mob).GetNumInvulnerableTicks());
+ WriteByte(0x66); // Float at index 6
+ WriteFloat((float)(a_Mob.GetHealth()));
+ break;
+ }
case cMonster::mtSlime:
case cMonster::mtMagmaCube:
{