summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-09-01 09:30:00 +0200
committerMattes D <github@xoft.cz>2019-09-06 16:12:33 +0200
commita2ffa432b31096f2533ecb50f49ba450b29a2989 (patch)
tree5bdd754cad5e7b49e279ee0e21b9fa15c7c35d7b /src/Chunk.cpp
parentUpdated LibEvent to release 2.1.11-stable. (#4383) (diff)
downloadcuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.gz
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.bz2
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.lz
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.xz
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.zst
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.zip
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 41a59c103..7a95bceed 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -50,23 +50,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:
cChunk::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
{