summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-30 19:49:42 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-30 19:49:42 +0200
commit5111628ba5b60aa5c9191ff6a09573920ac50e9c (patch)
treebd3f16195ac80fcb7a07a6d16ed954a11a561d5e /src
parentMerge pull request #1427 from mc-server/chestcarts (diff)
downloadcuberite-5111628ba5b60aa5c9191ff6a09573920ac50e9c.tar
cuberite-5111628ba5b60aa5c9191ff6a09573920ac50e9c.tar.gz
cuberite-5111628ba5b60aa5c9191ff6a09573920ac50e9c.tar.bz2
cuberite-5111628ba5b60aa5c9191ff6a09573920ac50e9c.tar.lz
cuberite-5111628ba5b60aa5c9191ff6a09573920ac50e9c.tar.xz
cuberite-5111628ba5b60aa5c9191ff6a09573920ac50e9c.tar.zst
cuberite-5111628ba5b60aa5c9191ff6a09573920ac50e9c.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockDoor.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/Blocks/BlockDoor.h b/src/Blocks/BlockDoor.h
index 0ff8bcfc8..7e46feec4 100644
--- a/src/Blocks/BlockDoor.h
+++ b/src/Blocks/BlockDoor.h
@@ -173,7 +173,20 @@ public:
/** Returns true if the specified blocktype is any kind of door */
inline static bool IsDoor(BLOCKTYPE a_Block)
{
- return (a_Block == E_BLOCK_WOODEN_DOOR) || (a_Block == E_BLOCK_IRON_DOOR);
+ switch (a_Block)
+ {
+ case E_BLOCK_ACACIA_DOOR:
+ case E_BLOCK_BIRCH_DOOR:
+ case E_BLOCK_DARK_OAK_DOOR:
+ case E_BLOCK_IRON_DOOR:
+ case E_BLOCK_JUNGLE_DOOR:
+ case E_BLOCK_SPRUCE_DOOR:
+ case E_BLOCK_WOODEN_DOOR:
+ {
+ return true;
+ }
+ }
+ return false;
}