summaryrefslogtreecommitdiffstats
path: root/src/Simulator/RedstoneSimulator.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-18 20:39:42 +0100
committerMattes D <github@xoft.cz>2014-01-18 20:39:42 +0100
commit36b9d4281978970e78af07a8a627213a974d2a7b (patch)
tree0db776a618aa6d195c5cec24acb8da3174896e68 /src/Simulator/RedstoneSimulator.h
parentHTTP connections aren't kept alive unless explicitly enabled. (diff)
parentCommand block fixes (diff)
downloadcuberite-36b9d4281978970e78af07a8a627213a974d2a7b.tar
cuberite-36b9d4281978970e78af07a8a627213a974d2a7b.tar.gz
cuberite-36b9d4281978970e78af07a8a627213a974d2a7b.tar.bz2
cuberite-36b9d4281978970e78af07a8a627213a974d2a7b.tar.lz
cuberite-36b9d4281978970e78af07a8a627213a974d2a7b.tar.xz
cuberite-36b9d4281978970e78af07a8a627213a974d2a7b.tar.zst
cuberite-36b9d4281978970e78af07a8a627213a974d2a7b.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: