summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2014-10-27 21:16:51 +0100
committerAlexander Harkness <me@bearbin.net>2014-10-27 21:16:51 +0100
commitb67eb2169eba24b767163d882dbf667a429bfbd6 (patch)
treecd64552ae8cd273d004d86f50ea2b7268ee9c7bb /src/WorldStorage/NBTChunkSerializer.cpp
parentFixed more warnings. (diff)
downloadcuberite-b67eb2169eba24b767163d882dbf667a429bfbd6.tar
cuberite-b67eb2169eba24b767163d882dbf667a429bfbd6.tar.gz
cuberite-b67eb2169eba24b767163d882dbf667a429bfbd6.tar.bz2
cuberite-b67eb2169eba24b767163d882dbf667a429bfbd6.tar.lz
cuberite-b67eb2169eba24b767163d882dbf667a429bfbd6.tar.xz
cuberite-b67eb2169eba24b767163d882dbf667a429bfbd6.tar.zst
cuberite-b67eb2169eba24b767163d882dbf667a429bfbd6.zip
Diffstat (limited to '')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index d85a5c329..1ecdcb5fd 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -604,6 +604,28 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster)
m_Writer.AddByte("IsConverting", (((const cZombie *)a_Monster)->IsConverting() ? 1 : 0));
break;
}
+ case mtInvalidType:
+ case mtBlaze:
+ case mtCaveSpider:
+ case mtChicken:
+ case mtCow:
+ case mtEnderDragon:
+ case mtGhast:
+ case mtGiant:
+ case mtIronGolem
+ case mtMooshroom:
+ case mtOcelot:
+ case mtPig:
+ case mtSilverfish:
+ case mtSnowGolem:
+ case meSpider:
+ case mtSquid:
+ case mtWitch:
+ case mtZombiePigman:
+ {
+ // Other mobs have no special tags.
+ break;
+ }
}
m_Writer.EndCompound();
}