diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-20 22:19:13 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-20 22:19:13 +0100 |
commit | 432a28d935c94c5acb7305a59f45cb946c1c10c9 (patch) | |
tree | 7a40b9850a622879290c7d663bc40f56b8ac9ed1 /src/Simulator/RedstoneSimulator.h | |
parent | Merge branch 'master' of https://github.com/mc-server/MCServer (diff) | |
download | cuberite-432a28d935c94c5acb7305a59f45cb946c1c10c9.tar cuberite-432a28d935c94c5acb7305a59f45cb946c1c10c9.tar.gz cuberite-432a28d935c94c5acb7305a59f45cb946c1c10c9.tar.bz2 cuberite-432a28d935c94c5acb7305a59f45cb946c1c10c9.tar.lz cuberite-432a28d935c94c5acb7305a59f45cb946c1c10c9.tar.xz cuberite-432a28d935c94c5acb7305a59f45cb946c1c10c9.tar.zst cuberite-432a28d935c94c5acb7305a59f45cb946c1c10c9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/RedstoneSimulator.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Simulator/RedstoneSimulator.h b/src/Simulator/RedstoneSimulator.h index d40d88342..309135497 100644 --- a/src/Simulator/RedstoneSimulator.h +++ b/src/Simulator/RedstoneSimulator.h @@ -115,6 +115,8 @@ private: void HandleTrapdoor(int a_BlockX, int a_BlockY, int a_BlockZ); /// <summary>Handles noteblocks</summary> void HandleNoteBlock(int a_BlockX, int a_BlockY, int a_BlockZ); + /// <summary>Handles noteblocks</summary> + void HandleDaylightSensor(int a_BlockX, int a_BlockY, int a_BlockZ); /* ===================== */ /* ====== Helper functions ====== */ @@ -164,13 +166,11 @@ private: case E_BLOCK_STICKY_PISTON: case E_BLOCK_REDSTONE_REPEATER_ON: case E_BLOCK_REDSTONE_REPEATER_OFF: + case E_BLOCK_DAYLIGHT_SENSOR: { return false; } - default: - { - return true; - } + default: return true; } } @@ -208,6 +208,7 @@ private: { switch (Block) { + case E_BLOCK_DAYLIGHT_SENSOR: case E_BLOCK_WOODEN_BUTTON: case E_BLOCK_STONE_BUTTON: case E_BLOCK_REDSTONE_WIRE: |