summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-09-22 17:55:42 +0200
committerMattes D <github@xoft.cz>2017-10-21 19:33:22 +0200
commit1537ebed6fa880ca8f9df92e5ac99324375b91a5 (patch)
tree0f141da47761e94a64331584b3924b9436777f51 /src/Generating
parentFix tool builds on AppleClang (diff)
downloadcuberite-1537ebed6fa880ca8f9df92e5ac99324375b91a5.tar
cuberite-1537ebed6fa880ca8f9df92e5ac99324375b91a5.tar.gz
cuberite-1537ebed6fa880ca8f9df92e5ac99324375b91a5.tar.bz2
cuberite-1537ebed6fa880ca8f9df92e5ac99324375b91a5.tar.lz
cuberite-1537ebed6fa880ca8f9df92e5ac99324375b91a5.tar.xz
cuberite-1537ebed6fa880ca8f9df92e5ac99324375b91a5.tar.zst
cuberite-1537ebed6fa880ca8f9df92e5ac99324375b91a5.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/ChunkGenerator.cpp5
-rw-r--r--src/Generating/ChunkGenerator.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/src/Generating/ChunkGenerator.cpp b/src/Generating/ChunkGenerator.cpp
index 8c0997d6b..d66838f9e 100644
--- a/src/Generating/ChunkGenerator.cpp
+++ b/src/Generating/ChunkGenerator.cpp
@@ -47,7 +47,7 @@ cChunkGenerator::~cChunkGenerator()
-bool cChunkGenerator::Start(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile)
+bool cChunkGenerator::Initialize(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile)
{
m_PluginInterface = &a_PluginInterface;
m_ChunkSink = &a_ChunkSink;
@@ -86,8 +86,7 @@ bool cChunkGenerator::Start(cPluginInterface & a_PluginInterface, cChunkSink & a
}
m_Generator->Initialize(a_IniFile);
-
- return super::Start();
+ return true;
}
diff --git a/src/Generating/ChunkGenerator.h b/src/Generating/ChunkGenerator.h
index cbbe1d1c7..c4be505da 100644
--- a/src/Generating/ChunkGenerator.h
+++ b/src/Generating/ChunkGenerator.h
@@ -33,7 +33,7 @@ class cChunkDesc;
class cChunkGenerator :
- cIsThread
+ public cIsThread
{
typedef cIsThread super;
@@ -110,7 +110,9 @@ public:
cChunkGenerator (void);
virtual ~cChunkGenerator() override;
- bool Start(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile);
+ /** Read settings from the ini file and initialize in preperation for being started. */
+ bool Initialize(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile);
+
void Stop(void);
/** Queues the chunk for generation