diff options
author | madmaxoft <github@xoft.cz> | 2014-07-15 22:42:00 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-15 22:42:00 +0200 |
commit | 3f8ec7699f0205a0346c32df49e2faf509995850 (patch) | |
tree | b61f06d0001d3fd3238f80b5a2304595bbb28c6e /src/Blocks/BlockPumpkin.h | |
parent | Restructured cSplashPotionEntity code. (diff) | |
parent | Merge pull request #1191 from Masy98/Blocks (diff) | |
download | cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar.gz cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar.bz2 cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar.lz cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar.xz cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar.zst cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockPumpkin.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Blocks/BlockPumpkin.h b/src/Blocks/BlockPumpkin.h index ac2b9817a..4692a47df 100644 --- a/src/Blocks/BlockPumpkin.h +++ b/src/Blocks/BlockPumpkin.h @@ -6,13 +6,16 @@ class cBlockPumpkinHandler : - public cMetaRotator<cBlockHandler, 0x07, 0x02, 0x03, 0x00, 0x01, false> + public cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x07, 0x02, 0x03, 0x00, 0x01, false> > { + typedef cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x07, 0x02, 0x03, 0x00, 0x01, false> > super; public: - cBlockPumpkinHandler(BLOCKTYPE a_BlockType) - : cMetaRotator<cBlockHandler, 0x07, 0x02, 0x03, 0x00, 0x01, false>(a_BlockType) + + cBlockPumpkinHandler(BLOCKTYPE a_BlockType) : + super(a_BlockType) { } + virtual void OnPlacedByPlayer(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override { |