summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasy98 <masy@antheruscraft.de>2014-09-27 14:19:45 +0200
committerMasy98 <masy@antheruscraft.de>2014-09-27 14:19:45 +0200
commit30f9a4d3abf9cf7f2b7b9f38d46bbb497e8f6b93 (patch)
tree90dd91c66c39ac97824d93ba42b30ca04c5b303f
parentMerge pull request #1456 from Howaner/Fixes (diff)
downloadcuberite-30f9a4d3abf9cf7f2b7b9f38d46bbb497e8f6b93.tar
cuberite-30f9a4d3abf9cf7f2b7b9f38d46bbb497e8f6b93.tar.gz
cuberite-30f9a4d3abf9cf7f2b7b9f38d46bbb497e8f6b93.tar.bz2
cuberite-30f9a4d3abf9cf7f2b7b9f38d46bbb497e8f6b93.tar.lz
cuberite-30f9a4d3abf9cf7f2b7b9f38d46bbb497e8f6b93.tar.xz
cuberite-30f9a4d3abf9cf7f2b7b9f38d46bbb497e8f6b93.tar.zst
cuberite-30f9a4d3abf9cf7f2b7b9f38d46bbb497e8f6b93.zip
-rw-r--r--src/Blocks/BlockDoor.h39
1 files changed, 38 insertions, 1 deletions
diff --git a/src/Blocks/BlockDoor.h b/src/Blocks/BlockDoor.h
index b2f9e4dcd..af6eee290 100644
--- a/src/Blocks/BlockDoor.h
+++ b/src/Blocks/BlockDoor.h
@@ -55,7 +55,44 @@ public:
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
{
- a_Pickups.push_back(cItem((m_BlockType == E_BLOCK_WOODEN_DOOR) ? E_ITEM_WOODEN_DOOR : E_ITEM_IRON_DOOR, 1, 0));
+ switch (m_BlockType)
+ {
+ case E_BLOCK_WOODEN_DOOR:
+ {
+ a_Pickups.Add(E_ITEM_WOODEN_DOOR);
+ break;
+ }
+ case E_BLOCK_ACACIA_DOOR:
+ {
+ a_Pickups.Add(E_ITEM_ACACIA_DOOR);
+ break;
+ }
+ case E_BLOCK_BIRCH_DOOR:
+ {
+ a_Pickups.Add(E_ITEM_BIRCH_DOOR);
+ break;
+ }
+ case E_BLOCK_DARK_OAK_DOOR:
+ {
+ a_Pickups.Add(E_ITEM_DARK_OAK_DOOR);
+ break;
+ }
+ case E_BLOCK_JUNGLE_DOOR:
+ {
+ a_Pickups.Add(E_ITEM_JUNGLE_DOOR);
+ break;
+ }
+ case E_BLOCK_SPRUCE_DOOR:
+ {
+ a_Pickups.Add(E_ITEM_SPRUCE_DOOR);
+ break;
+ }
+ case E_BLOCK_IRON_DOOR:
+ {
+ a_Pickups.Add(E_ITEM_IRON_DOOR);
+ break;
+ }
+ }
}