Remove Schematic Chunk height limitation
This commit is contained in:
parent
3f33b0736e
commit
d0f38f52cb
@ -162,7 +162,7 @@ bool cSchematicFileSerializer::LoadFromSchematicNBT(cBlockArea & a_BlockArea, cP
|
|||||||
int SizeX = a_NBT.GetShort(TSizeX);
|
int SizeX = a_NBT.GetShort(TSizeX);
|
||||||
int SizeY = a_NBT.GetShort(TSizeY);
|
int SizeY = a_NBT.GetShort(TSizeY);
|
||||||
int SizeZ = a_NBT.GetShort(TSizeZ);
|
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);
|
LOG("Dimensions are invalid in the schematic file: %d, %d, %d", SizeX, SizeY, SizeZ);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user