summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorMasy98 <masy@antheruscraft.de>2014-09-10 21:50:46 +0200
committerMasy98 <masy@antheruscraft.de>2014-09-10 21:50:46 +0200
commit214cc0f15d6ba7cafe6d3f1b35f631d6541cdf88 (patch)
treed2316daa03054226e6a31c70f1b860cf623bdc58 /src/Blocks
parentFixed typo (diff)
downloadcuberite-214cc0f15d6ba7cafe6d3f1b35f631d6541cdf88.tar
cuberite-214cc0f15d6ba7cafe6d3f1b35f631d6541cdf88.tar.gz
cuberite-214cc0f15d6ba7cafe6d3f1b35f631d6541cdf88.tar.bz2
cuberite-214cc0f15d6ba7cafe6d3f1b35f631d6541cdf88.tar.lz
cuberite-214cc0f15d6ba7cafe6d3f1b35f631d6541cdf88.tar.xz
cuberite-214cc0f15d6ba7cafe6d3f1b35f631d6541cdf88.tar.zst
cuberite-214cc0f15d6ba7cafe6d3f1b35f631d6541cdf88.zip
Diffstat (limited to 'src/Blocks')
-rw-r--r--src/Blocks/BlockSlab.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Blocks/BlockSlab.h b/src/Blocks/BlockSlab.h
index 0ad30bb2b..4c46a39c5 100644
--- a/src/Blocks/BlockSlab.h
+++ b/src/Blocks/BlockSlab.h
@@ -96,7 +96,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));
}
@@ -119,6 +119,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;
@@ -158,6 +159,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;