2014-02-02 09:59:36 -05:00
|
|
|
|
|
|
|
#include "Globals.h"
|
|
|
|
|
|
|
|
#include "ChunkInterface.h"
|
|
|
|
#include "BlockHandler.h"
|
|
|
|
|
|
|
|
bool cChunkInterface::DigBlock(cWorldInterface & a_WorldInterface, int a_X, int a_Y, int a_Z)
|
|
|
|
{
|
2014-03-02 14:25:05 -05:00
|
|
|
cBlockHandler * Handler = cBlockInfo::GetHandler(GetBlock(a_X, a_Y, a_Z));
|
2014-02-02 09:59:36 -05:00
|
|
|
Handler->OnDestroyed(*this, a_WorldInterface, a_X, a_Y, a_Z);
|
|
|
|
return m_ChunkMap->DigBlock(a_X, a_Y, a_Z);
|
|
|
|
}
|