summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-25 22:54:00 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-25 22:54:00 +0200
commit85c298d73e871daadf91671cdae9db83e30f9029 (patch)
tree2f9a2afcc0bb676454f332f78bffb7bd3e6ea380 /src/World.cpp
parentFixed some block checks (diff)
downloadcuberite-85c298d73e871daadf91671cdae9db83e30f9029.tar
cuberite-85c298d73e871daadf91671cdae9db83e30f9029.tar.gz
cuberite-85c298d73e871daadf91671cdae9db83e30f9029.tar.bz2
cuberite-85c298d73e871daadf91671cdae9db83e30f9029.tar.lz
cuberite-85c298d73e871daadf91671cdae9db83e30f9029.tar.xz
cuberite-85c298d73e871daadf91671cdae9db83e30f9029.tar.zst
cuberite-85c298d73e871daadf91671cdae9db83e30f9029.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 2e079d447..8f326cea4 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -3352,7 +3352,7 @@ void cWorld::SetChunkAlwaysTicked(int a_ChunkX, int a_ChunkZ, bool a_AlwaysTicke
-cRedstoneSimulator<cChunk, cWorld> * cWorld::InitializeRedstoneSimulator(cIniFile & a_IniFile)
+cRedstoneSimulator * cWorld::InitializeRedstoneSimulator(cIniFile & a_IniFile)
{
AString SimulatorName = a_IniFile.GetValueSet("Physics", "RedstoneSimulator", "Incremental");
@@ -3362,11 +3362,11 @@ cRedstoneSimulator<cChunk, cWorld> * cWorld::InitializeRedstoneSimulator(cIniFil
SimulatorName = "Incremental";
}
- cRedstoneSimulator<cChunk, cWorld> * res = nullptr;
+ cRedstoneSimulator * res = nullptr;
if (NoCaseCompare(SimulatorName, "Incremental") == 0)
{
- res = MakeIncrementalRedstoneSimulator(*this);
+ res = new cIncrementalRedstoneSimulator(*this);
}
else if (NoCaseCompare(SimulatorName, "noop") == 0)
{