summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
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/Bindings/PluginLua.cpp
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/Bindings/PluginLua.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index cefeb4996..4f0e13f12 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -195,14 +195,14 @@ void cPluginLua::Tick(float a_Dt)
-bool cPluginLua::OnBlockSpread(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ)
+bool cPluginLua::OnBlockSpread(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, eSpreadSource a_Source)
{
cCSLock Lock(m_CriticalSection);
bool res = false;
cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_BLOCK_SPREAD];
for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr)
{
- m_LuaState.Call((int)(**itr), a_World, a_BlockX, a_BlockY, a_BlockZ, cLuaState::Return, res);
+ m_LuaState.Call((int)(**itr), a_World, a_BlockX, a_BlockY, a_BlockZ, a_Source, cLuaState::Return, res);
if (res)
{
return true;