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

@@ -97,6 +97,12 @@ public:
return "";
}
virtual bool CanChangeDirtToGrass(BLOCKTYPE a_Block, NIBBLETYPE a_Meta) override
{
return (a_Meta & 0x8);
}
/// Returns true if the specified blocktype is one of the slabs handled by this handler
static bool IsAnySlabType(BLOCKTYPE a_BlockType)