summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2015-12-09 14:02:50 +0100
committerJulian Laubstein <julianlaubstein@yahoo.de>2015-12-09 14:02:50 +0100
commit2b2e0f3b2c2e0f1b813caf7a7b769461001e0ec9 (patch)
treef03ae3d61f5a9ee4aeccd6ce4149f8192059b4cc
parentMerge pull request #2706 from Gargaj/deadcreeper (diff)
parentFixed opposite condition in OreNests finisher. (diff)
downloadcuberite-2b2e0f3b2c2e0f1b813caf7a7b769461001e0ec9.tar
cuberite-2b2e0f3b2c2e0f1b813caf7a7b769461001e0ec9.tar.gz
cuberite-2b2e0f3b2c2e0f1b813caf7a7b769461001e0ec9.tar.bz2
cuberite-2b2e0f3b2c2e0f1b813caf7a7b769461001e0ec9.tar.lz
cuberite-2b2e0f3b2c2e0f1b813caf7a7b769461001e0ec9.tar.xz
cuberite-2b2e0f3b2c2e0f1b813caf7a7b769461001e0ec9.tar.zst
cuberite-2b2e0f3b2c2e0f1b813caf7a7b769461001e0ec9.zip
-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;