diff options
author | worktycho <work.tycho@gmail.com> | 2015-07-14 08:55:36 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-07-14 08:55:36 +0200 |
commit | c638b768289a094970d6a63f375914a1319e7562 (patch) | |
tree | a206146f2cbddc6070a159f6f5a252d4152b81e9 /src/Blocks | |
parent | Merge pull request #2347 from SamJBarney/ClampFix (diff) | |
parent | Torches can now be placed on top of upside down stairs. (diff) | |
download | cuberite-c638b768289a094970d6a63f375914a1319e7562.tar cuberite-c638b768289a094970d6a63f375914a1319e7562.tar.gz cuberite-c638b768289a094970d6a63f375914a1319e7562.tar.bz2 cuberite-c638b768289a094970d6a63f375914a1319e7562.tar.lz cuberite-c638b768289a094970d6a63f375914a1319e7562.tar.xz cuberite-c638b768289a094970d6a63f375914a1319e7562.tar.zst cuberite-c638b768289a094970d6a63f375914a1319e7562.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockTorch.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Blocks/BlockTorch.h b/src/Blocks/BlockTorch.h index 36d2fec67..0a834d13d 100644 --- a/src/Blocks/BlockTorch.h +++ b/src/Blocks/BlockTorch.h @@ -119,6 +119,22 @@ public: // Toches can be placed on the top of these slabs only if the occupy the top half of the voxel return ((a_BlockFace == BLOCK_FACE_YP) && ((a_BlockMeta & 0x08) == 0x08)); } + case E_BLOCK_WOODEN_STAIRS: + case E_BLOCK_COBBLESTONE_STAIRS: + case E_BLOCK_BRICK_STAIRS: + case E_BLOCK_STONE_BRICK_STAIRS: + case E_BLOCK_NETHER_BRICK_STAIRS: + case E_BLOCK_SANDSTONE_STAIRS: + case E_BLOCK_SPRUCE_WOOD_STAIRS: + case E_BLOCK_BIRCH_WOOD_STAIRS: + case E_BLOCK_JUNGLE_WOOD_STAIRS: + case E_BLOCK_QUARTZ_STAIRS: + case E_BLOCK_ACACIA_WOOD_STAIRS: + case E_BLOCK_DARK_OAK_WOOD_STAIRS: + case E_BLOCK_RED_SANDSTONE_STAIRS: + { + return (a_BlockFace == BLOCK_FACE_TOP) && (a_BlockMeta & E_BLOCK_STAIRS_UPSIDE_DOWN); + } default: { if (cBlockInfo::FullyOccupiesVoxel(a_BlockType)) |