From 1a127f5510f654d47ee75b3121e52c50d3e7533b Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 27 Jan 2013 02:00:33 +0000 Subject: Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups. Note that cItems is used in the function signature but not yet exported in the API, TODO! git-svn-id: http://mc-server.googlecode.com/svn/trunk@1176 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Plugin.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/Plugin.cpp') diff --git a/source/Plugin.cpp b/source/Plugin.cpp index 6857215e6..0dab44e78 100644 --- a/source/Plugin.cpp +++ b/source/Plugin.cpp @@ -38,18 +38,18 @@ void cPlugin::Tick(float a_Dt) -/* -// TODO -bool cPlugin::OnBlockToPickup(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, const cPlayer * a_Player, const cItem & a_EquippedItem, cItems & a_Pickups) +bool cPlugin::OnBlockToPickups(cWorld * a_World, cEntity * a_Digger, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, cItems & a_Pickups) { + UNUSED(a_World); + UNUSED(a_Digger); + UNUSED(a_BlockX); + UNUSED(a_BlockY); + UNUSED(a_BlockZ); UNUSED(a_BlockType); UNUSED(a_BlockMeta); - UNUSED(a_Player); - UNUSED(a_EquippedItem); UNUSED(a_Pickups); return false; } -*/ -- cgit v1.2.3