summaryrefslogtreecommitdiffstats
path: root/source/Chunk.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-02 16:44:31 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-02 16:44:31 +0100
commit66670f5d5ccabb3b560c2342d79d0cb1e8550899 (patch)
tree8699a9d7ba78f7525b16f896d07525b7cabb3849 /source/Chunk.cpp
parentCore: Updated with new features (contributed by STR_Warrior) (diff)
downloadcuberite-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.cpp5
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;
}