1
0

Added cWorld::DoWithChunk() function.

This will be used by the blocktracers to gain direct access to chunk data.
This commit is contained in:
madmaxoft
2013-08-03 20:26:50 +02:00
parent b688ba9be8
commit 4f26f11dc7
4 changed files with 31 additions and 0 deletions

View File

@@ -832,6 +832,15 @@ bool cWorld::GetSignLines(int a_BlockX, int a_BlockY, int a_BlockZ, AString & a_
bool cWorld::DoWithChunk(int a_ChunkX, int a_ChunkZ, cChunkCallback & a_Callback)
{
return m_ChunkMap->DoWithChunk(a_ChunkX, a_ChunkZ, a_Callback);
}
void cWorld::GrowTree(int a_X, int a_Y, int a_Z)
{
if (GetBlock(a_X, a_Y, a_Z) == E_BLOCK_SAPLING)