From 5fa077f869919325f82395161795ece9abbda280 Mon Sep 17 00:00:00 2001 From: bibo38 Date: Thu, 5 Nov 2015 18:56:06 +0100 Subject: Removed unused CanPull method --- src/Blocks/BlockPiston.h | 11 ----------- 1 file changed, 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, -- cgit v1.2.3