diff options
author | andrew <xdotftw@gmail.com> | 2014-03-24 11:29:19 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-03-24 11:29:19 +0100 |
commit | 6b77dc74ade3d8088da09d26c1b701d92ef28e9e (patch) | |
tree | 78e16164d1668d628ef0f545a5e62f5cbc1025fc /src/WorldStorage/NBTChunkSerializer.cpp | |
parent | Plugins can set flying speed. (diff) | |
download | cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.gz cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.bz2 cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.lz cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.xz cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.zst cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.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()); |