Merge pull request #2720 from cuberite/OreNestsFix
Fixed opposite condition in OreNests finisher.
This commit is contained in:
commit
2b2e0f3b2c
@ -1585,7 +1585,7 @@ void cFinishGenOreNests::GenerateOre(
|
|||||||
for (int x = xsize; x >= 0; --x)
|
for (int x = xsize; x >= 0; --x)
|
||||||
{
|
{
|
||||||
int BlockX = BaseX + 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
|
Num++; // So that the cycle finishes even if the base coords wander away from the chunk
|
||||||
continue;
|
continue;
|
||||||
@ -1601,7 +1601,7 @@ void cFinishGenOreNests::GenerateOre(
|
|||||||
for (int z = zsize; z >= 0; --z)
|
for (int z = zsize; z >= 0; --z)
|
||||||
{
|
{
|
||||||
int BlockZ = BaseZ + 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
|
Num++; // So that the cycle finishes even if the base coords wander away from the chunk
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user