diff options
author | Mattes D <github@xoft.cz> | 2020-04-09 22:25:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 22:25:20 +0200 |
commit | bdedab15c94956cbc74045ab242fd300d25f39e7 (patch) | |
tree | 900c4e7f662388e29405ccf059fcab767bbd8046 /src/Simulator/SandSimulator.cpp | |
parent | Wolves and mooshrooms are passive mobs (diff) | |
download | cuberite-bdedab15c94956cbc74045ab242fd300d25f39e7.tar cuberite-bdedab15c94956cbc74045ab242fd300d25f39e7.tar.gz cuberite-bdedab15c94956cbc74045ab242fd300d25f39e7.tar.bz2 cuberite-bdedab15c94956cbc74045ab242fd300d25f39e7.tar.lz cuberite-bdedab15c94956cbc74045ab242fd300d25f39e7.tar.xz cuberite-bdedab15c94956cbc74045ab242fd300d25f39e7.tar.zst cuberite-bdedab15c94956cbc74045ab242fd300d25f39e7.zip |
Diffstat (limited to 'src/Simulator/SandSimulator.cpp')
-rw-r--r-- | src/Simulator/SandSimulator.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Simulator/SandSimulator.cpp b/src/Simulator/SandSimulator.cpp index 42bb521ed..ee2c45520 100644 --- a/src/Simulator/SandSimulator.cpp +++ b/src/Simulator/SandSimulator.cpp @@ -62,12 +62,7 @@ void cSandSimulator::SimulateChunk(std::chrono::milliseconds a_Dt, int a_ChunkX, ); */ - auto FallingBlock = cpp14::make_unique<cFallingBlock>(Pos, BlockType, a_Chunk->GetMeta(itr->x, itr->y, itr->z)); - auto FallingBlockPtr = FallingBlock.get(); - if (!FallingBlockPtr->Initialize(std::move(FallingBlock), m_World)) - { - continue; - } + m_World.SpawnFallingBlock(Pos, BlockType, a_Chunk->GetMeta(itr->x, itr->y, itr->z)); a_Chunk->SetBlock({itr->x, itr->y, itr->z}, E_BLOCK_AIR, 0); } } |