Slight cChunk optimization

git-svn-id: http://mc-server.googlecode.com/svn/trunk@688 0a769ca7-a7f5-676a-18bf-c427514a06d6
master
madmaxoft@gmail.com 2012-07-21 14:47:44 +00:00
parent 588a2619aa
commit ab860e6573
1 changed files with 1 additions and 1 deletions

View File

@ -954,7 +954,7 @@ void cChunk::CreateBlockEntities(void)
{
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 )
{
case E_BLOCK_CHEST: