diff options
author | Mattes D <github@xoft.cz> | 2014-09-06 18:59:17 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-06 18:59:17 +0200 |
commit | 0a651b9fd83f078a73429f02603144e80a05148d (patch) | |
tree | cb9b30cc975b884dd2da97271da6570c4eb70537 /src/WorldStorage/WSSAnvil.cpp | |
parent | Alpha-sorted protocol 1.7 senders. (diff) | |
download | cuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar cuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar.gz cuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar.bz2 cuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar.lz cuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar.xz cuberite-0a651b9fd83f078a73429f02603144e80a05148d.tar.zst cuberite-0a651b9fd83f078a73429f02603144e80a05148d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index 2500b5dea..fe309ce4e 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -623,6 +623,8 @@ void cWSSAnvil::LoadBlockEntitiesFromNBT(cBlockEntityList & a_BlockEntities, con cBlockEntity * cWSSAnvil::LoadBlockEntityFromNBT(const cParsedNBT & a_NBT, int a_Tag, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) { + ASSERT((a_BlockY >= 0) && (a_BlockY < cChunkDef::Height)); + // Load the specific BlockEntity type: switch (a_BlockType) { |