diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-02 19:34:58 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-02 19:34:58 +0200 |
commit | 5c53608dd0e59d67a9aad5b03a58e1ff48d619b3 (patch) | |
tree | 69a2dca7e22c0dcfb6f069c81488814ae49c74df /src/WorldStorage/NBTChunkSerializer.cpp | |
parent | Added the new functions to APIDump. (diff) | |
download | cuberite-5c53608dd0e59d67a9aad5b03a58e1ff48d619b3.tar cuberite-5c53608dd0e59d67a9aad5b03a58e1ff48d619b3.tar.gz cuberite-5c53608dd0e59d67a9aad5b03a58e1ff48d619b3.tar.bz2 cuberite-5c53608dd0e59d67a9aad5b03a58e1ff48d619b3.tar.lz cuberite-5c53608dd0e59d67a9aad5b03a58e1ff48d619b3.tar.xz cuberite-5c53608dd0e59d67a9aad5b03a58e1ff48d619b3.tar.zst cuberite-5c53608dd0e59d67a9aad5b03a58e1ff48d619b3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/NBTChunkSerializer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index 68e541eba..1962d42ff 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -504,6 +504,8 @@ 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.AddString("CustomName", a_Monster->GetCustomName()); + m_Writer.AddByte("CustomNameVisible", (char)a_Monster->IsCustomNameAlwaysVisible()); switch (a_Monster->GetMobType()) { case cMonster::mtBat: |