summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockHandler.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-11 20:40:33 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-11 20:40:33 +0200
commit416c160fb52b400e81e029a358c503053a2b93ec (patch)
treea9180e2226ee382008154fc3b8e51ad64ff2f942 /src/Blocks/BlockHandler.cpp
parentSuggestions (diff)
downloadcuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar.gz
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar.bz2
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar.lz
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar.xz
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar.zst
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockHandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Blocks/BlockHandler.cpp b/src/Blocks/BlockHandler.cpp
index bd48ece52..fcd5e2b41 100644
--- a/src/Blocks/BlockHandler.cpp
+++ b/src/Blocks/BlockHandler.cpp
@@ -176,12 +176,13 @@ cBlockHandler * cBlockHandler::CreateBlockHandler(BLOCKTYPE a_BlockType)
{
switch(a_BlockType)
{
- // Block handlers, alphabetically sorted:
+ // Duplicate block handlers (two blocks use one handler), alphabetically sorted:
case E_BLOCK_CHEST:
case E_BLOCK_TRAPPED_CHEST: return new cBlockChestHandler(a_BlockType);
case E_BLOCK_FURNACE:
case E_BLOCK_LIT_FURNACE: return new cBlockFurnaceHandler(a_BlockType);
+ // Block handlers, alphabetically sorted:
case E_BLOCK_ACACIA_WOOD_STAIRS: return new cBlockStairsHandler (a_BlockType);
case E_BLOCK_ACTIVATOR_RAIL: return new cBlockRailHandler (a_BlockType);
case E_BLOCK_ANVIL: return new cBlockAnvilHandler (a_BlockType);