summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockDirt.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-03-16 16:06:03 +0100
committerHowaner <franzi.moos@googlemail.com>2014-03-27 23:20:28 +0100
commit3774b1be6445257a28677fbdce17bab58c168df9 (patch)
treef6cde5eb9cfbeff6b8e99294c11cfabe644b6c2b /src/Blocks/BlockDirt.h
parentAdd HOOK_BLOCK_SPREAD (diff)
downloadcuberite-3774b1be6445257a28677fbdce17bab58c168df9.tar
cuberite-3774b1be6445257a28677fbdce17bab58c168df9.tar.gz
cuberite-3774b1be6445257a28677fbdce17bab58c168df9.tar.bz2
cuberite-3774b1be6445257a28677fbdce17bab58c168df9.tar.lz
cuberite-3774b1be6445257a28677fbdce17bab58c168df9.tar.xz
cuberite-3774b1be6445257a28677fbdce17bab58c168df9.tar.zst
cuberite-3774b1be6445257a28677fbdce17bab58c168df9.zip
Diffstat (limited to 'src/Blocks/BlockDirt.h')
-rw-r--r--src/Blocks/BlockDirt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Blocks/BlockDirt.h b/src/Blocks/BlockDirt.h
index 544424a04..6240e5e3f 100644
--- a/src/Blocks/BlockDirt.h
+++ b/src/Blocks/BlockDirt.h
@@ -79,7 +79,10 @@ public:
Chunk->GetBlockTypeMeta(BlockX, BlockY + 1, BlockZ, AboveDest, AboveMeta);
if ((cBlockInfo::IsOneHitDig(AboveDest) || cBlockInfo::IsTransparent(AboveDest)) && !IsBlockWater(AboveDest))
{
- Chunk->FastSetBlock(BlockX, BlockY, BlockZ, E_BLOCK_GRASS, 0);
+ if (!cRoot::Get()->GetPluginManager()->CallHookBlockSpread((cWorld*) &a_WorldInterface, BlockX * cChunkDef::Width, BlockY, BlockZ * cChunkDef::Width, esGrassSpread))
+ {
+ Chunk->FastSetBlock(BlockX, BlockY, BlockZ, E_BLOCK_GRASS, 0);
+ }
}
} // for i - repeat twice
}