summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockFarmland.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-14 22:57:44 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-14 22:57:44 +0200
commit5b1552435f95887ba59c707e3635dcaf9cb358f4 (patch)
treef804248a5eb61c2b5a947dc574d1221f7b31b987 /src/Blocks/BlockFarmland.h
parentMaybe improved arrow sinking (diff)
downloadcuberite-5b1552435f95887ba59c707e3635dcaf9cb358f4.tar
cuberite-5b1552435f95887ba59c707e3635dcaf9cb358f4.tar.gz
cuberite-5b1552435f95887ba59c707e3635dcaf9cb358f4.tar.bz2
cuberite-5b1552435f95887ba59c707e3635dcaf9cb358f4.tar.lz
cuberite-5b1552435f95887ba59c707e3635dcaf9cb358f4.tar.xz
cuberite-5b1552435f95887ba59c707e3635dcaf9cb358f4.tar.zst
cuberite-5b1552435f95887ba59c707e3635dcaf9cb358f4.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockFarmland.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Blocks/BlockFarmland.h b/src/Blocks/BlockFarmland.h
index 3dd5bcd1d..390b6e5ee 100644
--- a/src/Blocks/BlockFarmland.h
+++ b/src/Blocks/BlockFarmland.h
@@ -19,15 +19,13 @@
class cBlockFarmlandHandler :
public cBlockHandler
{
- typedef cBlockHandler super;
public:
- cBlockFarmlandHandler(void) :
- super(E_BLOCK_FARMLAND)
+ cBlockFarmlandHandler(BLOCKTYPE a_BlockType) :
+ cBlockHandler(a_BlockType)
{
}
-
virtual void OnUpdate(cChunkInterface & cChunkInterface, cWorldInterface & a_WorldInterface, cBlockPluginInterface & a_PluginInterface, cChunk & a_Chunk, int a_RelX, int a_RelY, int a_RelZ) override
{
bool Found = false;
@@ -105,6 +103,11 @@ public:
}
}
}
+
+ virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
+ {
+ a_Pickups.Add(E_BLOCK_DIRT, 1, 0); // Reset meta
+ }
} ;