diff options
author | Mattes D <github@xoft.cz> | 2014-09-26 22:24:45 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-26 22:24:45 +0200 |
commit | 2c5b0f23788f027ebcb6e38d26036a04d011e1fd (patch) | |
tree | 0fde79c6cc466306eb042e88728c209cbc94f789 /src/Blocks/BlockSlab.h | |
parent | Merge pull request #1455 from mc-server/includes (diff) | |
parent | Moved curly brace to seperate line (diff) | |
download | cuberite-2c5b0f23788f027ebcb6e38d26036a04d011e1fd.tar cuberite-2c5b0f23788f027ebcb6e38d26036a04d011e1fd.tar.gz cuberite-2c5b0f23788f027ebcb6e38d26036a04d011e1fd.tar.bz2 cuberite-2c5b0f23788f027ebcb6e38d26036a04d011e1fd.tar.lz cuberite-2c5b0f23788f027ebcb6e38d26036a04d011e1fd.tar.xz cuberite-2c5b0f23788f027ebcb6e38d26036a04d011e1fd.tar.zst cuberite-2c5b0f23788f027ebcb6e38d26036a04d011e1fd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockSlab.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Blocks/BlockSlab.h b/src/Blocks/BlockSlab.h index fb92db8fe..ffe2414f7 100644 --- a/src/Blocks/BlockSlab.h +++ b/src/Blocks/BlockSlab.h @@ -97,7 +97,7 @@ 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)); + return ((a_BlockType == E_BLOCK_WOODEN_SLAB) || (a_BlockType == E_BLOCK_STONE_SLAB) || (a_BlockType == E_BLOCK_NEW_STONE_SLAB)); } @@ -120,6 +120,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_NEW_STONE_SLAB: return E_BLOCK_DOUBLE_NEW_STONE_SLAB; } ASSERT(!"Unhandled slab type!"); return E_BLOCK_AIR; @@ -159,6 +160,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_NEW_STONE_SLAB: return E_BLOCK_NEW_STONE_SLAB; } ASSERT(!"Unhandled double slab type!"); return a_BlockType; |