diff options
author | Mattes D <github@xoft.cz> | 2014-03-25 08:54:13 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-25 08:54:13 +0100 |
commit | c6186acf58d01697d5349edf1b44bde5038daec4 (patch) | |
tree | 40c5ef7ddec8467bd711d43f5db0262942415d17 /src/WorldStorage/NBTChunkSerializer.cpp | |
parent | Merge pull request #829 from Howaner/Cake (diff) | |
parent | Minor fixes (diff) | |
download | cuberite-c6186acf58d01697d5349edf1b44bde5038daec4.tar cuberite-c6186acf58d01697d5349edf1b44bde5038daec4.tar.gz cuberite-c6186acf58d01697d5349edf1b44bde5038daec4.tar.bz2 cuberite-c6186acf58d01697d5349edf1b44bde5038daec4.tar.lz cuberite-c6186acf58d01697d5349edf1b44bde5038daec4.tar.xz cuberite-c6186acf58d01697d5349edf1b44bde5038daec4.tar.zst cuberite-c6186acf58d01697d5349edf1b44bde5038daec4.zip |
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r-- | src/WorldStorage/NBTChunkSerializer.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index acca96ba8..f9cca1495 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -43,6 +43,7 @@ #include "../Mobs/Slime.h" #include "../Mobs/Skeleton.h" #include "../Mobs/Villager.h" +#include "../Mobs/Wither.h" #include "../Mobs/Wolf.h" #include "../Mobs/Zombie.h" @@ -422,7 +423,7 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster) case cMonster::mtSquid: EntityClass = "Squid"; break; case cMonster::mtVillager: EntityClass = "Villager"; break; case cMonster::mtWitch: EntityClass = "Witch"; break; - case cMonster::mtWither: EntityClass = "Wither"; break; + case cMonster::mtWither: EntityClass = "WitherBoss"; break; case cMonster::mtWolf: EntityClass = "Wolf"; break; case cMonster::mtZombie: EntityClass = "Zombie"; break; case cMonster::mtZombiePigman: EntityClass = "PigZombie"; break; @@ -501,6 +502,11 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster) m_Writer.AddInt("Profession", ((const cVillager *)a_Monster)->GetVilType()); break; } + case cMonster::mtWither: + { + m_Writer.AddInt("Invul", ((const cWither *)a_Monster)->GetNumInvulnerableTicks()); + break; + } case cMonster::mtWolf: { m_Writer.AddString("Owner", ((const cWolf *)a_Monster)->GetOwner()); |