summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage
diff options
context:
space:
mode:
authorKrystilizeNevaDies <57762380+KrystilizeNevaDies@users.noreply.github.com>2020-06-01 11:21:10 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-07-06 21:56:47 +0200
commitd0f38f52cbd97828d9cadaf12d33c886b8d00383 (patch)
tree476f6796ecd4b19947f871f3d7397d95bece3210 /src/WorldStorage
parentComment capitalisation (diff)
downloadcuberite-d0f38f52cbd97828d9cadaf12d33c886b8d00383.tar
cuberite-d0f38f52cbd97828d9cadaf12d33c886b8d00383.tar.gz
cuberite-d0f38f52cbd97828d9cadaf12d33c886b8d00383.tar.bz2
cuberite-d0f38f52cbd97828d9cadaf12d33c886b8d00383.tar.lz
cuberite-d0f38f52cbd97828d9cadaf12d33c886b8d00383.tar.xz
cuberite-d0f38f52cbd97828d9cadaf12d33c886b8d00383.tar.zst
cuberite-d0f38f52cbd97828d9cadaf12d33c886b8d00383.zip
Diffstat (limited to '')
-rw-r--r--src/WorldStorage/SchematicFileSerializer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/SchematicFileSerializer.cpp b/src/WorldStorage/SchematicFileSerializer.cpp
index 655a9a686..44ce7ca9b 100644
--- a/src/WorldStorage/SchematicFileSerializer.cpp
+++ b/src/WorldStorage/SchematicFileSerializer.cpp
@@ -162,7 +162,7 @@ bool cSchematicFileSerializer::LoadFromSchematicNBT(cBlockArea & a_BlockArea, cP
int SizeX = a_NBT.GetShort(TSizeX);
int SizeY = a_NBT.GetShort(TSizeY);
int SizeZ = a_NBT.GetShort(TSizeZ);
- if ((SizeX < 1) || (SizeX > 65535) || (SizeY < 1) || (SizeY > cChunkDef::Height) || (SizeZ < 1) || (SizeZ > 65535))
+ if ((SizeX < 1) || (SizeX > 65535) || (SizeY < 1) || (SizeY > 65535) || (SizeZ < 1) || (SizeZ > 65535))
{
LOG("Dimensions are invalid in the schematic file: %d, %d, %d", SizeX, SizeY, SizeZ);
return false;