summaryrefslogblamecommitdiffstats
path: root/src/Blocks/ChunkInterface.cpp
blob: 540581ae79a37cd5e9375967ff1d176433a0623d (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                                             
                                                                                  


                                                                     

#include "Globals.h"

#include "ChunkInterface.h"
#include "BlockHandler.h"

bool cChunkInterface::DigBlock(cWorldInterface & a_WorldInterface, int a_X, int a_Y, int a_Z)
{
	cBlockHandler * Handler = cBlockInfo::GetHandler(GetBlock(a_X, a_Y, a_Z));
	Handler->OnDestroyed(*this, a_WorldInterface, a_X, a_Y, a_Z);
	return m_ChunkMap->DigBlock(a_X, a_Y, a_Z);
}