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