diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-25 21:59:12 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-25 21:59:12 +0200 |
commit | 6d650d5f3c59663c94da8b269d9e5cc3979c3da4 (patch) | |
tree | a2c557d1e09b0872e14055c13c0672b6b6cff9e4 /src/Simulator | |
parent | Use relative vectors in cChunk::DoWith (diff) | |
download | cuberite-6d650d5f3c59663c94da8b269d9e5cc3979c3da4.tar cuberite-6d650d5f3c59663c94da8b269d9e5cc3979c3da4.tar.gz cuberite-6d650d5f3c59663c94da8b269d9e5cc3979c3da4.tar.bz2 cuberite-6d650d5f3c59663c94da8b269d9e5cc3979c3da4.tar.lz cuberite-6d650d5f3c59663c94da8b269d9e5cc3979c3da4.tar.xz cuberite-6d650d5f3c59663c94da8b269d9e5cc3979c3da4.tar.zst cuberite-6d650d5f3c59663c94da8b269d9e5cc3979c3da4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/Simulator.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Simulator/Simulator.cpp b/src/Simulator/Simulator.cpp index 9dbdd6a07..ac2e757e4 100644 --- a/src/Simulator/Simulator.cpp +++ b/src/Simulator/Simulator.cpp @@ -21,18 +21,6 @@ void cSimulator::WakeUp(Vector3i a_Block, cChunk * a_Chunk) { AddBlock(a_Block, a_Chunk); - AddBlock(a_Block + Vector3i(-1, 0, 0), a_Chunk->GetNeighborChunk(a_Block.x - 1, a_Block.z)); - AddBlock(a_Block + Vector3i( 1, 0, 0), a_Chunk->GetNeighborChunk(a_Block.x + 1, a_Block.z)); - AddBlock(a_Block + Vector3i(0, 0, -1), a_Chunk->GetNeighborChunk(a_Block.x, a_Block.z - 1)); - AddBlock(a_Block + Vector3i(0, 0, 1), a_Chunk->GetNeighborChunk(a_Block.x, a_Block.z + 1)); - if (a_Block.y > 0) - { - AddBlock(a_Block + Vector3i(0, -1, 0), a_Chunk); - } - if (a_Block.y < cChunkDef::Height - 1) - { - AddBlock(a_Block + Vector3i(0, 1, 0), a_Chunk); - } } |