summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-12-09 08:03:33 +0100
committerMattes D <github@xoft.cz>2015-12-09 08:03:33 +0100
commitb8fe09901ba657aef13b21da13c4b48eeaa8ce1d (patch)
treef03ae3d61f5a9ee4aeccd6ce4149f8192059b4cc /src
parentMerge pull request #2706 from Gargaj/deadcreeper (diff)
downloadcuberite-b8fe09901ba657aef13b21da13c4b48eeaa8ce1d.tar
cuberite-b8fe09901ba657aef13b21da13c4b48eeaa8ce1d.tar.gz
cuberite-b8fe09901ba657aef13b21da13c4b48eeaa8ce1d.tar.bz2
cuberite-b8fe09901ba657aef13b21da13c4b48eeaa8ce1d.tar.lz
cuberite-b8fe09901ba657aef13b21da13c4b48eeaa8ce1d.tar.xz
cuberite-b8fe09901ba657aef13b21da13c4b48eeaa8ce1d.tar.zst
cuberite-b8fe09901ba657aef13b21da13c4b48eeaa8ce1d.zip
Diffstat (limited to 'src')
-rw-r--r--src/Generating/FinishGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp
index 27ff6255f..f3a62e8e3 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -1585,7 +1585,7 @@ void cFinishGenOreNests::GenerateOre(
for (int x = xsize; x >= 0; --x)
{
int BlockX = BaseX + x;
- if (cChunkDef::IsValidWidth(BlockX))
+ if (!cChunkDef::IsValidWidth(BlockX))
{
Num++; // So that the cycle finishes even if the base coords wander away from the chunk
continue;
@@ -1601,7 +1601,7 @@ void cFinishGenOreNests::GenerateOre(
for (int z = zsize; z >= 0; --z)
{
int BlockZ = BaseZ + z;
- if (cChunkDef::IsValidWidth(BlockZ))
+ if (!cChunkDef::IsValidWidth(BlockZ))
{
Num++; // So that the cycle finishes even if the base coords wander away from the chunk
continue;