summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-21 00:24:29 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-21 00:24:29 +0200
commit0c44904766ee835dc07a96d563d3d109fcda293a (patch)
treedf36ee899e07e82a74167cb6de681b8899888ca3
parentFixed longstanding issue with slabs (diff)
downloadcuberite-0c44904766ee835dc07a96d563d3d109fcda293a.tar
cuberite-0c44904766ee835dc07a96d563d3d109fcda293a.tar.gz
cuberite-0c44904766ee835dc07a96d563d3d109fcda293a.tar.bz2
cuberite-0c44904766ee835dc07a96d563d3d109fcda293a.tar.lz
cuberite-0c44904766ee835dc07a96d563d3d109fcda293a.tar.xz
cuberite-0c44904766ee835dc07a96d563d3d109fcda293a.tar.zst
cuberite-0c44904766ee835dc07a96d563d3d109fcda293a.zip
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockSlab.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Blocks/BlockSlab.h b/source/Blocks/BlockSlab.h
index dd80da27e..44e1962b9 100644
--- a/source/Blocks/BlockSlab.h
+++ b/source/Blocks/BlockSlab.h
@@ -39,15 +39,15 @@ public:
{
if (a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ) == E_BLOCK_STONE_SLAB)
{
- a_World->FastSetBlock(a_BlockX, a_BlockY - 1, a_BlockZ, E_BLOCK_DOUBLE_STONE_SLAB, Meta);
- a_BlockType = E_BLOCK_AIR;
+ a_World->FastSetBlock(a_BlockX, a_BlockY - 1, a_BlockZ, E_BLOCK_DOUBLE_STONE_SLAB, Meta); //Set it to a slabby block
+ a_BlockType = E_BLOCK_AIR; //Stop the server trying to place another slab on top
}
else
{
- a_BlockMeta = Meta & 0x7; break; // Always bottom half of the slab when placing on top of something
+ a_BlockMeta = Meta & 0x7; break; //Bottom half if on top of non slab block
}
}
- case BLOCK_FACE_BOTTOM: a_BlockMeta = Meta | 0x8; break; // Always top half of the slab when placing on bottom of something
+ case BLOCK_FACE_BOTTOM: a_BlockMeta = Meta | 0x8; break; //Always top when placing on bottom of something
case BLOCK_FACE_EAST:
case BLOCK_FACE_NORTH:
case BLOCK_FACE_SOUTH: