diff options
author | bibo38 <bibo38@github.com> | 2015-03-20 11:14:42 +0100 |
---|---|---|
committer | bibo38 <bibo38@github.com> | 2015-03-20 11:14:42 +0100 |
commit | 3058c4c010534b6e410b3384c49a20935a9b06e3 (patch) | |
tree | e934e46036c42e31a49d7f4967518e177833e9e7 /src/Blocks/BlockPiston.cpp | |
parent | APIDump: Removed the tolua.cast() example. (diff) | |
download | cuberite-3058c4c010534b6e410b3384c49a20935a9b06e3.tar cuberite-3058c4c010534b6e410b3384c49a20935a9b06e3.tar.gz cuberite-3058c4c010534b6e410b3384c49a20935a9b06e3.tar.bz2 cuberite-3058c4c010534b6e410b3384c49a20935a9b06e3.tar.lz cuberite-3058c4c010534b6e410b3384c49a20935a9b06e3.tar.xz cuberite-3058c4c010534b6e410b3384c49a20935a9b06e3.tar.zst cuberite-3058c4c010534b6e410b3384c49a20935a9b06e3.zip |
Diffstat (limited to 'src/Blocks/BlockPiston.cpp')
-rw-r--r-- | src/Blocks/BlockPiston.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Blocks/BlockPiston.cpp b/src/Blocks/BlockPiston.cpp index 8d245cabe..5816920f7 100644 --- a/src/Blocks/BlockPiston.cpp +++ b/src/Blocks/BlockPiston.cpp @@ -61,6 +61,16 @@ void cBlockPistonHandler::OnDestroyed(cChunkInterface & a_ChunkInterface, cWorld +void cBlockPistonHandler::ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) +{ + // Returning Piston Item without Direction-Metavalue + a_Pickups.push_back(cItem(m_BlockType, 1)); +} + + + + + bool cBlockPistonHandler::GetPlacementBlockTypeMeta( cChunkInterface & a_ChunkInterface, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, |