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

@@ -85,6 +85,9 @@ public:
/// Checks if the block can stay at the specified relative coords in the chunk
virtual bool CanBeAt(cChunkInterface & a_ChunkInterface, int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk);
/** Can spread the block under this block to grass? */
virtual bool CanChangeDirtToGrass(BLOCKTYPE a_Block, NIBBLETYPE a_Meta);
/** Checks if the block can be placed at this point.
Default: CanBeAt(...)