summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockVine.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/BlockVine.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 '')
-rw-r--r--src/Blocks/BlockVine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Blocks/BlockVine.h b/src/Blocks/BlockVine.h
index 8041d9359..9d84b720e 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, esVineSpread))
+ {
+ a_Chunk.UnboundedRelSetBlock(a_RelX, a_RelY - 1, a_RelZ, E_BLOCK_VINES, a_Chunk.GetMeta(a_RelX, a_RelY, a_RelZ));
+ }
}
}