summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-04 21:09:02 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-04 21:09:02 +0200
commit9c7a6bc443605612c09be824c452b9287fa2bfdb (patch)
tree5ab12d2950546976127c168330ca18d9afaf59b6 /src/WorldStorage/NBTChunkSerializer.cpp
parentFixed a NetherFinisher bug (diff)
downloadcuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar
cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar.gz
cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar.bz2
cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar.lz
cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar.xz
cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.tar.zst
cuberite-9c7a6bc443605612c09be824c452b9287fa2bfdb.zip
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index a3b0d57be..70c07af50 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -484,6 +484,7 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster)
m_Writer.AddFloat("", a_Monster->GetDropChanceBoots());
m_Writer.EndList();
m_Writer.AddByte("CanPickUpLoot", (char)a_Monster->CanPickUpLoot());
+ m_Writer.AddShort("Health", (short)a_Monster->GetHealth());
switch (a_Monster->GetMobType())
{
case cMonster::mtBat: