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
This commit is contained in:
@@ -384,7 +384,7 @@ void cClassicFluidSimulator::Simulate(float a_Dt)
|
||||
cBlockHandler * Handler = BlockHandler(DownID);
|
||||
if (Handler->DoesDropOnUnsuitable())
|
||||
{
|
||||
Handler->DropBlock(m_World, pos.x, pos.y - 1, pos.z);
|
||||
Handler->DropBlock(m_World, NULL, pos.x, pos.y - 1, pos.z);
|
||||
}
|
||||
}
|
||||
if (pos.y > 0)
|
||||
@@ -420,7 +420,7 @@ void cClassicFluidSimulator::Simulate(float a_Dt)
|
||||
cBlockHandler * Handler = BlockHandler(DownID);
|
||||
if (Handler->DoesDropOnUnsuitable())
|
||||
{
|
||||
Handler->DropBlock(m_World, p.x, p.y, p.z);
|
||||
Handler->DropBlock(m_World, NULL, p.x, p.y, p.z);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user