diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-02 23:08:57 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-02 23:08:57 +0100 |
commit | ac03c5199749ef007d4ad4cb88467327225c5ff1 (patch) | |
tree | 130a2d3a585696165a28b818e3216f15ec4ff49a | |
parent | Fixed #620 (diff) | |
download | cuberite-ac03c5199749ef007d4ad4cb88467327225c5ff1.tar cuberite-ac03c5199749ef007d4ad4cb88467327225c5ff1.tar.gz cuberite-ac03c5199749ef007d4ad4cb88467327225c5ff1.tar.bz2 cuberite-ac03c5199749ef007d4ad4cb88467327225c5ff1.tar.lz cuberite-ac03c5199749ef007d4ad4cb88467327225c5ff1.tar.xz cuberite-ac03c5199749ef007d4ad4cb88467327225c5ff1.tar.zst cuberite-ac03c5199749ef007d4ad4cb88467327225c5ff1.zip |
-rw-r--r-- | src/BlockID.cpp | 1 | ||||
-rw-r--r-- | src/Blocks/BlockChest.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/BlockID.cpp b/src/BlockID.cpp index fbb5a0720..de56d4625 100644 --- a/src/BlockID.cpp +++ b/src/BlockID.cpp @@ -793,6 +793,7 @@ public: g_BlockIsSolid[E_BLOCK_WOODEN_SLAB] = false; // Torch placeable blocks: + g_BlockFullyOccupiesVoxel[E_BLOCK_NEW_LOG] = true; g_BlockFullyOccupiesVoxel[E_BLOCK_BEDROCK] = true; g_BlockFullyOccupiesVoxel[E_BLOCK_BLOCK_OF_COAL] = true; g_BlockFullyOccupiesVoxel[E_BLOCK_BLOCK_OF_REDSTONE] = true; diff --git a/src/Blocks/BlockChest.h b/src/Blocks/BlockChest.h index 88f7c4b32..561e9bc8c 100644 --- a/src/Blocks/BlockChest.h +++ b/src/Blocks/BlockChest.h @@ -216,6 +216,12 @@ public: a_World->SetBlockMeta(a_Area.GetOriginX() + a_RelX, a_Area.GetOriginY(), a_Area.GetOriginZ() + a_RelZ, a_NewMeta); return true; } + + + virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override + { + a_Pickups.push_back(cItem(E_BLOCK_CHEST, 1, 0)); + } } ; |