summaryrefslogtreecommitdiffstats
path: root/src/Simulator/RedstoneSimulator.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-20 22:19:13 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-20 22:19:13 +0100
commit432a28d935c94c5acb7305a59f45cb946c1c10c9 (patch)
tree7a40b9850a622879290c7d663bc40f56b8ac9ed1 /src/Simulator/RedstoneSimulator.h
parentMerge branch 'master' of https://github.com/mc-server/MCServer (diff)
downloadcuberite-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.h9
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: