diff options
author | madmaxoft <github@xoft.cz> | 2014-03-28 16:39:32 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-03-28 16:39:32 +0100 |
commit | 173fd0dd9246a0a30041cc103327aed5dd7166d5 (patch) | |
tree | 095ec63173d417d83cc709a4bd0fa35801484e4b /src/Blocks/BlockDirt.h | |
parent | Fixed Prefab's rotations. (diff) | |
parent | Add missing ChunkDesc import. (diff) | |
download | cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar.gz cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar.bz2 cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar.lz cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar.xz cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar.zst cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockDirt.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Blocks/BlockDirt.h b/src/Blocks/BlockDirt.h index 544424a04..a1ab74257 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, ssGrassSpread)) + { + Chunk->FastSetBlock(BlockX, BlockY, BlockZ, E_BLOCK_GRASS, 0); + } } } // for i - repeat twice } |