diff options
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockFurnace.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/Blocks/BlockFurnace.h b/src/Blocks/BlockFurnace.h index 4a0459bf0..9a59f95f8 100644 --- a/src/Blocks/BlockFurnace.h +++ b/src/Blocks/BlockFurnace.h @@ -1,17 +1,17 @@ #pragma once -#include "BlockEntity.h" #include "../Blocks/BlockPiston.h" +#include "../BlockEntities/FurnaceEntity.h" #include "Mixins.h" class cBlockFurnaceHandler : - public cClearMetaOnDrop<cMetaRotator<cBlockEntityHandler, 0x07, 0x02, 0x05, 0x03, 0x04>> + public cMetaRotator<cBlockEntityHandler, 0x07, 0x02, 0x05, 0x03, 0x04> { - using super = cClearMetaOnDrop<cMetaRotator<cBlockEntityHandler, 0x07, 0x02, 0x05, 0x03, 0x04>>; + using super = cMetaRotator<cBlockEntityHandler, 0x07, 0x02, 0x05, 0x03, 0x04>; public: @@ -43,6 +43,21 @@ public: + virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, cBlockEntity * a_BlockEntity, const cEntity * a_Digger, const cItem * a_Tool) override + { + cItems res(cItem(E_BLOCK_FURNACE, 1)); // We can't drop a lit furnace + if (a_BlockEntity != nullptr) + { + auto be = static_cast<cFurnaceEntity *>(a_BlockEntity); + res.AddItemGrid(be->GetContents()); + } + return res; + } + + + + + virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override { UNUSED(a_Meta); |