Fixed opposite condition in OreNests finisher.
This commit is contained in:
parent
ac8504a6ef
commit
b8fe09901b
@ -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