summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockRedstoneWire.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Blocks/BlockRedstoneWire.h')
-rw-r--r--src/Blocks/BlockRedstoneWire.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/Blocks/BlockRedstoneWire.h b/src/Blocks/BlockRedstoneWire.h
index 3976afa90..de8e59a40 100644
--- a/src/Blocks/BlockRedstoneWire.h
+++ b/src/Blocks/BlockRedstoneWire.h
@@ -3,7 +3,8 @@
#include "BlockHandler.h"
#include "BlockSlab.h"
-
+#include "BlockStairs.h"
+#include "../Chunk.h"
@@ -34,14 +35,19 @@ private:
{
return true;
}
- else if (cBlockSlabHandler::IsAnySlabType(BelowBlock))
+
+ // upside down slabs
+ if (cBlockSlabHandler::IsAnySlabType(BelowBlock))
+ {
+ return BelowBlockMeta & E_META_WOODEN_SLAB_UPSIDE_DOWN;
+ }
+
+ // upside down stairs
+ if (cBlockStairsHandler::IsAnyStairType(BelowBlock))
{
- // Check if the slab is turned up side down
- if ((BelowBlockMeta & 0x08) == 0x08)
- {
- return true;
- }
+ return BelowBlockMeta & E_BLOCK_STAIRS_UPSIDE_DOWN;
}
+
return false;
}