summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-11-18 15:33:41 +0100
committerHowaner <franzi.moos@googlemail.com>2014-11-18 15:33:41 +0100
commit8b028c5c78e53c149dfa8b3e7ec878f7f0428f1d (patch)
tree8b45393b6cc7095482dc377c2448e06d408830f9 /src/WorldStorage/NBTChunkSerializer.cpp
parentMerge branch 'master' into MobSpawner (diff)
downloadcuberite-8b028c5c78e53c149dfa8b3e7ec878f7f0428f1d.tar
cuberite-8b028c5c78e53c149dfa8b3e7ec878f7f0428f1d.tar.gz
cuberite-8b028c5c78e53c149dfa8b3e7ec878f7f0428f1d.tar.bz2
cuberite-8b028c5c78e53c149dfa8b3e7ec878f7f0428f1d.tar.lz
cuberite-8b028c5c78e53c149dfa8b3e7ec878f7f0428f1d.tar.xz
cuberite-8b028c5c78e53c149dfa8b3e7ec878f7f0428f1d.tar.zst
cuberite-8b028c5c78e53c149dfa8b3e7ec878f7f0428f1d.zip
Diffstat (limited to '')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index 05d5709db..228df2686 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -294,9 +294,10 @@ void cNBTChunkSerializer::AddJukeboxEntity(cJukeboxEntity * a_Jukebox)
void cNBTChunkSerializer::AddMobSpawnerEntity(cMobSpawnerEntity * a_MobSpawner)
{
m_Writer.BeginCompound("");
- AddBasicTileEntity(a_MobSpawner, "MobSpawner");
+ AddBasicTileEntity(a_MobSpawner, "MobSpawner");
+ m_Writer.AddShort("Entity", static_cast<short>(a_MobSpawner->GetEntity()));
m_Writer.AddString("EntityId", a_MobSpawner->GetEntityName());
- m_Writer.AddShort("Delay", (Int16)a_MobSpawner->GetSpawnDelay());
+ m_Writer.AddShort("Delay", a_MobSpawner->GetSpawnDelay());
m_Writer.EndCompound();
}