From b8fe09901ba657aef13b21da13c4b48eeaa8ce1d Mon Sep 17 00:00:00 2001 From: Mattes D Date: Wed, 9 Dec 2015 08:03:33 +0100 Subject: Fixed opposite condition in OreNests finisher. --- src/Generating/FinishGen.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3