summaryrefslogtreecommitdiffstats
path: root/src/Simulator/RedstoneSimulator.h
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-01-18 14:16:47 +0100
committerandrew <xdotftw@gmail.com>2014-01-18 14:16:47 +0100
commit9a9b51a5134d8afd8f089d247c59668bd7da695d (patch)
tree74be5c51628307a8ddf8ce39a0236dfb511c7941 /src/Simulator/RedstoneSimulator.h
parentMerge pull request #552 from worktycho/c++11 (diff)
downloadcuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar.gz
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar.bz2
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar.lz
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar.xz
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.tar.zst
cuberite-9a9b51a5134d8afd8f089d247c59668bd7da695d.zip
Diffstat (limited to 'src/Simulator/RedstoneSimulator.h')
-rw-r--r--src/Simulator/RedstoneSimulator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Simulator/RedstoneSimulator.h b/src/Simulator/RedstoneSimulator.h
index 63a5be3d3..bb2efeb8a 100644
--- a/src/Simulator/RedstoneSimulator.h
+++ b/src/Simulator/RedstoneSimulator.h
@@ -110,6 +110,8 @@ private:
void HandleRedstoneLamp(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_MyState);
/** Handles doords */
void HandleDoor(int a_BlockX, int a_BlockY, int a_BlockZ);
+ /** Handles command blocks */
+ void HandleCommandBlock(int a_BlockX, int a_BlockY, int a_BlockZ);
/** Handles activator, detector, and powered rails */
void HandleRail(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_MyType);
/** Handles trapdoors */
@@ -166,6 +168,7 @@ private:
switch (Block)
{
case E_BLOCK_ACTIVATOR_RAIL:
+ case E_BLOCK_COMMAND_BLOCK:
case E_BLOCK_PISTON:
case E_BLOCK_STICKY_PISTON:
case E_BLOCK_DISPENSER:
@@ -220,6 +223,7 @@ private:
case E_BLOCK_ACTIVATOR_RAIL:
case E_BLOCK_ACTIVE_COMPARATOR:
case E_BLOCK_BLOCK_OF_REDSTONE:
+ case E_BLOCK_COMMAND_BLOCK:
case E_BLOCK_DETECTOR_RAIL:
case E_BLOCK_DISPENSER:
case E_BLOCK_DAYLIGHT_SENSOR: