diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-25 20:34:31 +0100 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-25 20:34:31 +0100 |
commit | cf720c17e6b2a08d64e063a101d5412d0f2b85ab (patch) | |
tree | 883ae07014ca44babefa1c347dbcd1063991e43b /source/cEntity.cpp | |
parent | - Implemented function to check item category (diff) | |
download | cuberite-cf720c17e6b2a08d64e063a101d5412d0f2b85ab.tar cuberite-cf720c17e6b2a08d64e063a101d5412d0f2b85ab.tar.gz cuberite-cf720c17e6b2a08d64e063a101d5412d0f2b85ab.tar.bz2 cuberite-cf720c17e6b2a08d64e063a101d5412d0f2b85ab.tar.lz cuberite-cf720c17e6b2a08d64e063a101d5412d0f2b85ab.tar.xz cuberite-cf720c17e6b2a08d64e063a101d5412d0f2b85ab.tar.zst cuberite-cf720c17e6b2a08d64e063a101d5412d0f2b85ab.zip |
Diffstat (limited to 'source/cEntity.cpp')
-rw-r--r-- | source/cEntity.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/cEntity.cpp b/source/cEntity.cpp index b9cbbd9f6..b32439869 100644 --- a/source/cEntity.cpp +++ b/source/cEntity.cpp @@ -51,6 +51,10 @@ void cEntity::Initialize( cWorld* a_World ) m_World = a_World;
m_World->AddEntity( this );
+ MoveToCorrectChunk();
+
+ /*
+Not needed because itīs covered by the MoveToCorrectChunk function
cWorld::BlockToChunk( (int)m_Pos->x, (int)m_Pos->y, (int)m_Pos->z, m_ChunkX, m_ChunkY, m_ChunkZ );
cChunk* Chunk = m_World->GetChunk( m_ChunkX, m_ChunkY, m_ChunkZ );
if( Chunk )
@@ -58,6 +62,7 @@ void cEntity::Initialize( cWorld* a_World ) //LOG("Adding entity %i to chunk %i %i %i", m_UniqueID, Chunk->GetPosX(), Chunk->GetPosY(), Chunk->GetPosZ() );
Chunk->AddEntity( *this );
}
+ */
}
void cEntity::WrapRotation()
|