From f89d6cc9afdafe0092cf837084fffefe69e1b19a Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Fri, 9 Aug 2013 16:20:12 +0200 Subject: Piston head, when removed, removes the associated piston body, too. Fixes FS 388 --- source/Blocks/BlockPiston.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source/Blocks/BlockPiston.h') diff --git a/source/Blocks/BlockPiston.h b/source/Blocks/BlockPiston.h index ef6a4fa97..109f5ea8b 100644 --- a/source/Blocks/BlockPiston.h +++ b/source/Blocks/BlockPiston.h @@ -26,3 +26,18 @@ public: + +class cBlockPistonHeadHandler : + public cBlockHandler +{ + typedef cBlockHandler super; + +public: + cBlockPistonHeadHandler(void); + + virtual void OnDestroyedByPlayer(cWorld * a_World, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ) override; +} ; + + + + -- cgit v1.2.3