From ab860e6573033aa4af87f790a95dd5fdc2b38dbd Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 21 Jul 2012 14:47:44 +0000 Subject: Slight cChunk optimization git-svn-id: http://mc-server.googlecode.com/svn/trunk@688 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/cChunk.cpp b/source/cChunk.cpp index 99d938919..fc1b7de95 100644 --- a/source/cChunk.cpp +++ b/source/cChunk.cpp @@ -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: -- cgit v1.2.3