diff options
author | Masy98 <masy@antheruscraft.de> | 2014-09-27 15:11:35 +0200 |
---|---|---|
committer | Masy98 <masy@antheruscraft.de> | 2014-09-27 15:11:35 +0200 |
commit | 6dd47e783af33cc7eecaf1837899c213bc09f954 (patch) | |
tree | 7006c6ddb723b750aa177a05312ad056ffa6bf6c | |
parent | Fixed convertToPickups for fence gates (diff) | |
download | cuberite-6dd47e783af33cc7eecaf1837899c213bc09f954.tar cuberite-6dd47e783af33cc7eecaf1837899c213bc09f954.tar.gz cuberite-6dd47e783af33cc7eecaf1837899c213bc09f954.tar.bz2 cuberite-6dd47e783af33cc7eecaf1837899c213bc09f954.tar.lz cuberite-6dd47e783af33cc7eecaf1837899c213bc09f954.tar.xz cuberite-6dd47e783af33cc7eecaf1837899c213bc09f954.tar.zst cuberite-6dd47e783af33cc7eecaf1837899c213bc09f954.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockDoor.h | 5 | ||||
-rw-r--r-- | src/Blocks/BlockHandler.cpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/Blocks/BlockDoor.h b/src/Blocks/BlockDoor.h index af6eee290..0ff8bcfc8 100644 --- a/src/Blocks/BlockDoor.h +++ b/src/Blocks/BlockDoor.h @@ -92,6 +92,11 @@ public: a_Pickups.Add(E_ITEM_IRON_DOOR); break; } + default: + { + ASSERT(!"Unhandled door type!"); + break; + } } } diff --git a/src/Blocks/BlockHandler.cpp b/src/Blocks/BlockHandler.cpp index 7bfff0545..ff0b201e7 100644 --- a/src/Blocks/BlockHandler.cpp +++ b/src/Blocks/BlockHandler.cpp @@ -294,6 +294,7 @@ cBlockHandler * cBlockHandler::CreateBlockHandler(BLOCKTYPE a_BlockType) case E_BLOCK_SIGN_POST: return new cBlockSignPostHandler (a_BlockType); case E_BLOCK_SNOW: return new cBlockSnowHandler (a_BlockType); case E_BLOCK_SPRUCE_DOOR: return new cBlockDoorHandler (a_BlockType); + case E_BLOCK_SPRUCE_FENCE_GATE: return new cBlockFenceGateHandler (a_BlockType); case E_BLOCK_SPRUCE_WOOD_STAIRS: return new cBlockStairsHandler (a_BlockType); case E_BLOCK_STAINED_GLASS: return new cBlockGlassHandler (a_BlockType); case E_BLOCK_STAINED_GLASS_PANE: return new cBlockGlassHandler (a_BlockType); |