summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-04-16 23:27:04 +0200
committerGitHub <noreply@github.com>2020-04-16 23:27:04 +0200
commitede56a5750a1880107589076a67ba68b78608427 (patch)
tree19f6d727c59b2103cf97aae70903838c65c6f40b /src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp
parentUsing Super. (diff)
downloadcuberite-ede56a5750a1880107589076a67ba68b78608427.tar
cuberite-ede56a5750a1880107589076a67ba68b78608427.tar.gz
cuberite-ede56a5750a1880107589076a67ba68b78608427.tar.bz2
cuberite-ede56a5750a1880107589076a67ba68b78608427.tar.lz
cuberite-ede56a5750a1880107589076a67ba68b78608427.tar.xz
cuberite-ede56a5750a1880107589076a67ba68b78608427.tar.zst
cuberite-ede56a5750a1880107589076a67ba68b78608427.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp
index 6be03c947..4e20c9407 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp
@@ -18,6 +18,7 @@
#include "PistonHandler.h"
#include "SmallGateHandler.h"
#include "NoteBlockHandler.h"
+#include "ObserverHandler.h"
#include "TNTHandler.h"
#include "PoweredRailHandler.h"
#include "PressurePlateHandler.h"
@@ -90,6 +91,8 @@ std::unique_ptr<cRedstoneHandler> cIncrementalRedstoneSimulator::CreateComponent
case E_BLOCK_REDSTONE_TORCH_OFF:
case E_BLOCK_REDSTONE_TORCH_ON: return cpp14::make_unique<cRedstoneTorchHandler>();
+ case E_BLOCK_OBSERVER: return cpp14::make_unique<cObserverHandler>();
+
case E_BLOCK_PISTON:
case E_BLOCK_STICKY_PISTON: return cpp14::make_unique<cPistonHandler>();