Fixed a NetherFinisher bug
This commit is contained in:
parent
ccbf6cc446
commit
7d3d9e92e8
@ -20,7 +20,6 @@ cChunkDesc::cChunkDesc(int a_ChunkX, int a_ChunkZ) :
|
|||||||
m_bUseDefaultBiomes(true),
|
m_bUseDefaultBiomes(true),
|
||||||
m_bUseDefaultHeight(true),
|
m_bUseDefaultHeight(true),
|
||||||
m_bUseDefaultComposition(true),
|
m_bUseDefaultComposition(true),
|
||||||
m_bUseDefaultStructures(true),
|
|
||||||
m_bUseDefaultFinish(true)
|
m_bUseDefaultFinish(true)
|
||||||
{
|
{
|
||||||
m_BlockArea.Create(cChunkDef::Width, cChunkDef::Height, cChunkDef::Width);
|
m_BlockArea.Create(cChunkDef::Width, cChunkDef::Height, cChunkDef::Width);
|
||||||
@ -207,26 +206,6 @@ bool cChunkDesc::IsUsingDefaultComposition(void) const
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void cChunkDesc::SetUseDefaultStructures(bool a_bUseDefaultStructures)
|
|
||||||
{
|
|
||||||
LOGWARNING("%s: Structures are no longer accounted for, use Finishers instead", __FUNCTION__);
|
|
||||||
m_bUseDefaultStructures = a_bUseDefaultStructures;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool cChunkDesc::IsUsingDefaultStructures(void) const
|
|
||||||
{
|
|
||||||
LOGWARNING("%s: Structures are no longer accounted for, use Finishers instead", __FUNCTION__);
|
|
||||||
return m_bUseDefaultStructures;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void cChunkDesc::SetUseDefaultFinish(bool a_bUseDefaultFinish)
|
void cChunkDesc::SetUseDefaultFinish(bool a_bUseDefaultFinish)
|
||||||
{
|
{
|
||||||
m_bUseDefaultFinish = a_bUseDefaultFinish;
|
m_bUseDefaultFinish = a_bUseDefaultFinish;
|
||||||
|
@ -68,8 +68,6 @@ public:
|
|||||||
bool IsUsingDefaultHeight(void) const;
|
bool IsUsingDefaultHeight(void) const;
|
||||||
void SetUseDefaultComposition(bool a_bUseDefaultComposition);
|
void SetUseDefaultComposition(bool a_bUseDefaultComposition);
|
||||||
bool IsUsingDefaultComposition(void) const;
|
bool IsUsingDefaultComposition(void) const;
|
||||||
void SetUseDefaultStructures(bool a_bUseDefaultStructures);
|
|
||||||
bool IsUsingDefaultStructures(void) const;
|
|
||||||
void SetUseDefaultFinish(bool a_bUseDefaultFinish);
|
void SetUseDefaultFinish(bool a_bUseDefaultFinish);
|
||||||
bool IsUsingDefaultFinish(void) const;
|
bool IsUsingDefaultFinish(void) const;
|
||||||
|
|
||||||
@ -214,7 +212,6 @@ private:
|
|||||||
bool m_bUseDefaultBiomes;
|
bool m_bUseDefaultBiomes;
|
||||||
bool m_bUseDefaultHeight;
|
bool m_bUseDefaultHeight;
|
||||||
bool m_bUseDefaultComposition;
|
bool m_bUseDefaultComposition;
|
||||||
bool m_bUseDefaultStructures;
|
|
||||||
bool m_bUseDefaultFinish;
|
bool m_bUseDefaultFinish;
|
||||||
} ; // tolua_export
|
} ; // tolua_export
|
||||||
|
|
||||||
|
@ -125,6 +125,15 @@ void cFinishGenNetherClumpFoliage::TryPlaceClump(cChunkDesc & a_ChunkDesc, int a
|
|||||||
float zz = (float) a_ChunkDesc.GetChunkZ() * cChunkDef::Width + z;
|
float zz = (float) a_ChunkDesc.GetChunkZ() * cChunkDef::Width + z;
|
||||||
for (int y = a_RelY - 2; y < a_RelY + 2; y++)
|
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.
|
if (a_ChunkDesc.GetBlockType(x, y, z) != E_BLOCK_AIR) // Don't replace non air blocks.
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user