summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/MapSerializer.cpp
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-03-24 11:29:19 +0100
committerandrew <xdotftw@gmail.com>2014-03-24 11:29:19 +0100
commit6b77dc74ade3d8088da09d26c1b701d92ef28e9e (patch)
tree78e16164d1668d628ef0f545a5e62f5cbc1025fc /src/WorldStorage/MapSerializer.cpp
parentPlugins can set flying speed. (diff)
downloadcuberite-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/MapSerializer.cpp')
-rw-r--r--src/WorldStorage/MapSerializer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/WorldStorage/MapSerializer.cpp b/src/WorldStorage/MapSerializer.cpp
index a4a0aab57..df72d1cc9 100644
--- a/src/WorldStorage/MapSerializer.cpp
+++ b/src/WorldStorage/MapSerializer.cpp
@@ -141,7 +141,11 @@ bool cMapSerializer::LoadMapFromNBT(const cParsedNBT & a_NBT)
{
eDimension Dimension = (eDimension) a_NBT.GetByte(CurrLine);
- ASSERT(Dimension == m_Map->m_World->GetDimension());
+ if (Dimension != m_Map->m_World->GetDimension())
+ {
+ // TODO 2014-03-20 xdot: We should store nether maps in nether worlds, e.t.c.
+ return false;
+ }
}
CurrLine = a_NBT.FindChildByName(Data, "width");