From a2ffa432b31096f2533ecb50f49ba450b29a2989 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 1 Sep 2019 09:30:00 +0200 Subject: Separated chunk generator from world / plugin interfaces. The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests. --- src/Chunk.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/Chunk.cpp') diff --git a/src/Chunk.cpp b/src/Chunk.cpp index 41a59c103..7a95bceed 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -49,23 +49,6 @@ -//////////////////////////////////////////////////////////////////////////////// -// sSetBlock: - -sSetBlock::sSetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta): - m_RelX(a_BlockX), - m_RelY(a_BlockY), - m_RelZ(a_BlockZ), - m_BlockType(a_BlockType), - m_BlockMeta(a_BlockMeta) -{ - cChunkDef::AbsoluteToRelative(m_RelX, m_RelY, m_RelZ, m_ChunkX, m_ChunkZ); -} - - - - - //////////////////////////////////////////////////////////////////////////////// // cChunk: @@ -276,7 +259,7 @@ void cChunk::MarkLoadFailed(void) // If the chunk is marked as needed, generate it: if (m_ShouldGenerateIfLoadFailed) { - m_World->GetGenerator().QueueGenerateChunk(m_PosX, m_PosZ, false); + m_World->GetGenerator().QueueGenerateChunk({m_PosX, m_PosZ}, false); } else { -- cgit v1.2.3