summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-24 15:30:52 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-24 15:30:52 +0200
commit32ecb121a3f7e0fa2cd35c78403949947e889c1d (patch)
tree6633ced6077aaa45b2735aec2a6855ce75bb3643 /src/WorldStorage
parentDon't create two entity lists. (diff)
downloadcuberite-32ecb121a3f7e0fa2cd35c78403949947e889c1d.tar
cuberite-32ecb121a3f7e0fa2cd35c78403949947e889c1d.tar.gz
cuberite-32ecb121a3f7e0fa2cd35c78403949947e889c1d.tar.bz2
cuberite-32ecb121a3f7e0fa2cd35c78403949947e889c1d.tar.lz
cuberite-32ecb121a3f7e0fa2cd35c78403949947e889c1d.tar.xz
cuberite-32ecb121a3f7e0fa2cd35c78403949947e889c1d.tar.zst
cuberite-32ecb121a3f7e0fa2cd35c78403949947e889c1d.zip
Diffstat (limited to 'src/WorldStorage')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index a052bf5f3..08ed893f5 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -85,13 +85,13 @@ void cNBTChunkSerializer::Finish(void)
// Check if "Entity" and "TileEntities" lists exists. MCEdit requires this.
if (!m_HasHadEntity)
{
- a_Writer.BeginList("Entities", TAG_Compound);
- a_Writer.EndList();
+ m_Writer.BeginList("Entities", TAG_Compound);
+ m_Writer.EndList();
}
if (!m_HasHadBlockEntity)
{
- a_Writer.BeginList("TileEntities", TAG_Compound);
- a_Writer.EndList();
+ m_Writer.BeginList("TileEntities", TAG_Compound);
+ m_Writer.EndList();
}
}