summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol125.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-04-02 12:00:26 +0200
committerMattes D <github@xoft.cz>2014-04-02 12:00:26 +0200
commit01c38505fd26a207e6bb0ad5916311c082c12b31 (patch)
tree56e499098895a03bc66beac5aa33ba4ee261f17e /src/Protocol/Protocol125.cpp
parentDebuggers: Added a Base64 API roundtrip test. (diff)
parentFixed clang compilation (diff)
downloadcuberite-01c38505fd26a207e6bb0ad5916311c082c12b31.tar
cuberite-01c38505fd26a207e6bb0ad5916311c082c12b31.tar.gz
cuberite-01c38505fd26a207e6bb0ad5916311c082c12b31.tar.bz2
cuberite-01c38505fd26a207e6bb0ad5916311c082c12b31.tar.lz
cuberite-01c38505fd26a207e6bb0ad5916311c082c12b31.tar.xz
cuberite-01c38505fd26a207e6bb0ad5916311c082c12b31.tar.zst
cuberite-01c38505fd26a207e6bb0ad5916311c082c12b31.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 ea844c044..fe6280218 100644
--- a/src/Protocol/Protocol125.cpp
+++ b/src/Protocol/Protocol125.cpp
@@ -1951,6 +1951,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:
{