Fixed a NetherFinisher bug
This commit is contained in:
@@ -125,6 +125,15 @@ void cFinishGenNetherClumpFoliage::TryPlaceClump(cChunkDesc & a_ChunkDesc, int a
|
||||
float zz = (float) a_ChunkDesc.GetChunkZ() * cChunkDef::Width + z;
|
||||
for (int y = a_RelY - 2; y < a_RelY + 2; y++)
|
||||
{
|
||||
if (
|
||||
((x < 0) || (x >= cChunkDef::Width)) ||
|
||||
((y < 0) || (y >= cChunkDef::Height)) ||
|
||||
((z < 0) || (z >= cChunkDef::Width))
|
||||
)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (a_ChunkDesc.GetBlockType(x, y, z) != E_BLOCK_AIR) // Don't replace non air blocks.
|
||||
{
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user