diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-03-16 16:06:03 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-03-27 23:20:28 +0100 |
commit | 3774b1be6445257a28677fbdce17bab58c168df9 (patch) | |
tree | f6cde5eb9cfbeff6b8e99294c11cfabe644b6c2b /src/Bindings/PluginManager.cpp | |
parent | Add HOOK_BLOCK_SPREAD (diff) | |
download | cuberite-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/Bindings/PluginManager.cpp')
-rw-r--r-- | src/Bindings/PluginManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp index 142b4b5ad..7d346c522 100644 --- a/src/Bindings/PluginManager.cpp +++ b/src/Bindings/PluginManager.cpp @@ -205,7 +205,7 @@ void cPluginManager::Tick(float a_Dt) -bool cPluginManager::CallHookBlockSpread(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) +bool cPluginManager::CallHookBlockSpread(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, eSpreadSource a_Source) { HookMap::iterator Plugins = m_Hooks.find(HOOK_BLOCK_SPREAD); if (Plugins == m_Hooks.end()) @@ -214,7 +214,7 @@ bool cPluginManager::CallHookBlockSpread(cWorld * a_World, int a_BlockX, int a_B } for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr) { - if ((*itr)->OnBlockSpread(a_World, a_BlockX, a_BlockY, a_BlockZ)) + if ((*itr)->OnBlockSpread(a_World, a_BlockX, a_BlockY, a_BlockZ, a_Source)) { return true; } |