1
0

Merge pull request #2720 from cuberite/OreNestsFix

Fixed opposite condition in OreNests finisher.
This commit is contained in:
Julian Laubstein 2015-12-09 14:02:50 +01:00
commit 2b2e0f3b2c

View File

@ -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;