diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-02 16:44:31 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-02 16:44:31 +0100 |
commit | 66670f5d5ccabb3b560c2342d79d0cb1e8550899 (patch) | |
tree | 8699a9d7ba78f7525b16f896d07525b7cabb3849 /source/Chunk.cpp | |
parent | Core: Updated with new features (contributed by STR_Warrior) (diff) | |
download | cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar.gz cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar.bz2 cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar.lz cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar.xz cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.tar.zst cuberite-66670f5d5ccabb3b560c2342d79d0cb1e8550899.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Chunk.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp index 7c8d8744e..a013554db 100644 --- a/source/Chunk.cpp +++ b/source/Chunk.cpp @@ -29,6 +29,7 @@ #include "BlockArea.h" #include "PluginManager.h" #include "Blocks/BlockHandler.h" +#include "Simulator/FluidSimulator.h" #include <json/json.h> @@ -78,6 +79,8 @@ cChunk::cChunk( , m_NeighborXP(a_NeighborXP) , m_NeighborZM(a_NeighborZM) , m_NeighborZP(a_NeighborZP) + , m_WaterSimulatorData(a_World->GetWaterSimulator()->CreateChunkData()) + , m_LavaSimulatorData (a_World->GetLavaSimulator ()->CreateChunkData()) { if (a_NeighborXM != NULL) { @@ -145,6 +148,8 @@ cChunk::~cChunk() { m_NeighborZP->m_NeighborZM = NULL; } + delete m_WaterSimulatorData; + delete m_LavaSimulatorData; } |