diff options
author | bibo38 <bibo38@github.com> | 2015-11-05 18:56:06 +0100 |
---|---|---|
committer | bibo38 <bibo38@github.com> | 2015-11-07 17:23:02 +0100 |
commit | 5fa077f869919325f82395161795ece9abbda280 (patch) | |
tree | 68ff8f7660cf25cc600da7ec07322b8fcf626bee /src | |
parent | Extracted block moving code into a seperate method (diff) | |
download | cuberite-5fa077f869919325f82395161795ece9abbda280.tar cuberite-5fa077f869919325f82395161795ece9abbda280.tar.gz cuberite-5fa077f869919325f82395161795ece9abbda280.tar.bz2 cuberite-5fa077f869919325f82395161795ece9abbda280.tar.lz cuberite-5fa077f869919325f82395161795ece9abbda280.tar.xz cuberite-5fa077f869919325f82395161795ece9abbda280.tar.zst cuberite-5fa077f869919325f82395161795ece9abbda280.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Blocks/BlockPiston.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/Blocks/BlockPiston.h b/src/Blocks/BlockPiston.h index f05e73f38..af9e3d3bc 100644 --- a/src/Blocks/BlockPiston.h +++ b/src/Blocks/BlockPiston.h @@ -145,17 +145,6 @@ private: return true; } - /** Returns true if the specified block can be pulled by a sticky piston */ - static inline bool CanPull(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) - { - if (cBlockInfo::IsPistonBreakable(a_BlockType)) - { - return false; // CanBreakPush returns true, but we need false to prevent pulling - } - - return CanPush(a_BlockType, a_BlockMeta); - } - /** Tries to push a block and increases the pushed blocks variable. Returns true if the block is pushable */ static bool CanPushBlock( int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World, bool a_RequirePushable, |