Slight cChunk optimization
git-svn-id: http://mc-server.googlecode.com/svn/trunk@688 0a769ca7-a7f5-676a-18bf-c427514a06d6master
parent
588a2619aa
commit
ab860e6573
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue