1
0

Add CanChangeDirtToGrass function to Block Handlers.

This commit is contained in:
Howaner
2014-04-06 21:41:01 +02:00
parent 32d054e8fd
commit 039191499c
9 changed files with 45 additions and 4 deletions

View File

@@ -396,6 +396,15 @@ bool cBlockHandler::CanBeAt(cChunkInterface & a_ChunkInterface, int a_BlockX, in
bool cBlockHandler::CanChangeDirtToGrass(BLOCKTYPE a_Block, NIBBLETYPE a_Meta)
{
return ((cBlockInfo::IsTransparent(a_Block)) || (cBlockInfo::IsOneHitDig(a_Block)));
}
bool cBlockHandler::IsUseable()
{
return false;