summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-01 11:17:37 +0100
committermadmaxoft <github@xoft.cz>2013-11-01 11:17:37 +0100
commitdb190a627ce2615a4f273f7035243ddd8a0722cc (patch)
treea6db37a7fa5cb36302c8358b8c86f7cf4380dc93
parentMerge branch 'griefer'sdelight' of git://github.com/tigerw/MCServer. (diff)
parentMerge pull request #302 from SamJBarney/master (diff)
downloadcuberite-db190a627ce2615a4f273f7035243ddd8a0722cc.tar
cuberite-db190a627ce2615a4f273f7035243ddd8a0722cc.tar.gz
cuberite-db190a627ce2615a4f273f7035243ddd8a0722cc.tar.bz2
cuberite-db190a627ce2615a4f273f7035243ddd8a0722cc.tar.lz
cuberite-db190a627ce2615a4f273f7035243ddd8a0722cc.tar.xz
cuberite-db190a627ce2615a4f273f7035243ddd8a0722cc.tar.zst
cuberite-db190a627ce2615a4f273f7035243ddd8a0722cc.zip
-rw-r--r--source/Blocks/BlockRail.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/Blocks/BlockRail.h b/source/Blocks/BlockRail.h
index 0e83b952d..24a101652 100644
--- a/source/Blocks/BlockRail.h
+++ b/source/Blocks/BlockRail.h
@@ -22,6 +22,8 @@ enum ENUM_PURE
class cBlockRailHandler :
public cBlockHandler
{
+ typedef cBlockHandler super;
+
public:
cBlockRailHandler(BLOCKTYPE a_BlockType)
: cBlockHandler(a_BlockType)
@@ -51,6 +53,12 @@ public:
}
+ virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
+ {
+ super::ConvertToPickups(a_Pickups, 0);
+ }
+
+
virtual bool CanBeAt(int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk) override
{
if (a_RelY <= 0)