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/BlockVine.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 'src/Blocks/BlockVine.h')
-rw-r--r-- | src/Blocks/BlockVine.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Blocks/BlockVine.h b/src/Blocks/BlockVine.h index 8041d9359..d096c81a8 100644 --- a/src/Blocks/BlockVine.h +++ b/src/Blocks/BlockVine.h @@ -175,7 +175,10 @@ public: a_Chunk.UnboundedRelGetBlockType(a_RelX, a_RelY - 1, a_RelZ, Block); if (Block == E_BLOCK_AIR) { - a_Chunk.UnboundedRelSetBlock(a_RelX, a_RelY - 1, a_RelZ, E_BLOCK_VINES, a_Chunk.GetMeta(a_RelX, a_RelY, a_RelZ)); + if (!cRoot::Get()->GetPluginManager()->CallHookBlockSpread((cWorld*) &a_WorldInterface, a_RelX * cChunkDef::Width, a_RelY - 1, a_RelZ * cChunkDef::Width, ssVineSpread)) + { + a_Chunk.UnboundedRelSetBlock(a_RelX, a_RelY - 1, a_RelZ, E_BLOCK_VINES, a_Chunk.GetMeta(a_RelX, a_RelY, a_RelZ)); + } } } |