1
0

Slight cChunk optimization

git-svn-id: http://mc-server.googlecode.com/svn/trunk@688 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-07-21 14:47:44 +00:00
parent 588a2619aa
commit ab860e6573

View File

@ -954,7 +954,7 @@ void cChunk::CreateBlockEntities(void)
{ {
for (int y = 0; y < Height; y++) for (int y = 0; y < Height; y++)
{ {
ENUM_BLOCK_ID BlockType = (ENUM_BLOCK_ID)m_BlockTypes[ MakeIndex( x, y, z ) ]; ENUM_BLOCK_ID BlockType = (ENUM_BLOCK_ID)cChunkDef::GetBlock(m_BlockTypes, x, y, z);
switch ( BlockType ) switch ( BlockType )
{ {
case E_BLOCK_CHEST: case E_BLOCK_CHEST: