summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-28 19:42:35 +0100
committerMattes D <github@xoft.cz>2014-10-28 19:42:35 +0100
commit6a1a76e73d0b35adbdc6284f1ec36d171adda157 (patch)
treed91ad7a2c9ab4ab611b7598732d61669d5742019 /src/WorldStorage/NBTChunkSerializer.cpp
parentQtBiomeVisualiser: Attempt at fixing Linux compilation. (diff)
parentQtBiomeVisualiser: Fixed compilation on Linux. (diff)
downloadcuberite-6a1a76e73d0b35adbdc6284f1ec36d171adda157.tar
cuberite-6a1a76e73d0b35adbdc6284f1ec36d171adda157.tar.gz
cuberite-6a1a76e73d0b35adbdc6284f1ec36d171adda157.tar.bz2
cuberite-6a1a76e73d0b35adbdc6284f1ec36d171adda157.tar.lz
cuberite-6a1a76e73d0b35adbdc6284f1ec36d171adda157.tar.xz
cuberite-6a1a76e73d0b35adbdc6284f1ec36d171adda157.tar.zst
cuberite-6a1a76e73d0b35adbdc6284f1ec36d171adda157.zip
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-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..4daa8cc7b 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 mtSpider:
+ case mtSquid:
+ case mtWitch:
+ case mtZombiePigman:
+ {
+ // Other mobs have no special tags.
+ break;
+ }
}
m_Writer.EndCompound();
}