diff options
author | mathiascode <mathiascode@users.noreply.github.com> | 2017-02-14 11:13:55 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-02-14 11:13:55 +0100 |
commit | 4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6 (patch) | |
tree | 7164954ec1ca29c34623248ff413d007268a17e8 /src/Blocks/BlockSlab.h | |
parent | Improved easyinstall.sh to support macOS and FreeBSD (#3557) (diff) | |
download | cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar.gz cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar.bz2 cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar.lz cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar.xz cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar.zst cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.zip |
Diffstat (limited to 'src/Blocks/BlockSlab.h')
-rw-r--r-- | src/Blocks/BlockSlab.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Blocks/BlockSlab.h b/src/Blocks/BlockSlab.h index c75dee50d..01e9e701d 100644 --- a/src/Blocks/BlockSlab.h +++ b/src/Blocks/BlockSlab.h @@ -88,7 +88,12 @@ public: /** Returns true if the specified blocktype is one of the slabs handled by this handler */ static bool IsAnySlabType(BLOCKTYPE a_BlockType) { - return ((a_BlockType == E_BLOCK_WOODEN_SLAB) || (a_BlockType == E_BLOCK_STONE_SLAB) || (a_BlockType == E_BLOCK_RED_SANDSTONE_SLAB)); + return ( + (a_BlockType == E_BLOCK_WOODEN_SLAB) || + (a_BlockType == E_BLOCK_STONE_SLAB) || + (a_BlockType == E_BLOCK_RED_SANDSTONE_SLAB) || + (a_BlockType == E_BLOCK_PURPUR_SLAB) + ); } virtual void OnCancelRightClick(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) override @@ -110,6 +115,7 @@ public: case E_BLOCK_STONE_SLAB: return E_BLOCK_DOUBLE_STONE_SLAB; case E_BLOCK_WOODEN_SLAB: return E_BLOCK_DOUBLE_WOODEN_SLAB; case E_BLOCK_RED_SANDSTONE_SLAB: return E_BLOCK_DOUBLE_RED_SANDSTONE_SLAB; + case E_BLOCK_PURPUR_SLAB: return E_BLOCK_PURPUR_DOUBLE_SLAB; } ASSERT(!"Unhandled slab type!"); return E_BLOCK_AIR; @@ -167,6 +173,10 @@ public: { return 10; } + case E_BLOCK_PURPUR_SLAB: + { + return 16; + } default: { ASSERT(!"Unhandled blocktype in slab handler!"); @@ -211,6 +221,7 @@ public: case E_BLOCK_DOUBLE_STONE_SLAB: return E_BLOCK_STONE_SLAB; case E_BLOCK_DOUBLE_WOODEN_SLAB: return E_BLOCK_WOODEN_SLAB; case E_BLOCK_DOUBLE_RED_SANDSTONE_SLAB: return E_BLOCK_RED_SANDSTONE_SLAB; + case E_BLOCK_PURPUR_DOUBLE_SLAB: return E_BLOCK_PURPUR_SLAB; } ASSERT(!"Unhandled double slab type!"); return a_BlockType; |