summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-07-12 02:27:29 +0200
committerarchshift <admin@archshift.com>2014-07-12 02:27:29 +0200
commit4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4 (patch)
treec43c02cef430c346a0ab310d1e6714bf66897052 /src/Bindings/PluginLua.cpp
parentMerge remote-tracking branch 'origin/master' into potions (diff)
downloadcuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.gz
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.bz2
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.lz
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.xz
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.zst
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.zip
Diffstat (limited to 'src/Bindings/PluginLua.cpp')
-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 e10cca708..a08803189 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -420,14 +420,14 @@ bool cPluginLua::OnDisconnect(cClientHandle & a_Client, const AString & a_Reason
-bool cPluginLua::OnEntityAddEffect(cEntity & a_Entity, int a_EffectType, int a_EffectDurationTicks, int a_EffectIntensity, cEntity * a_Originator, double a_DistanceModifier)
+bool cPluginLua::OnEntityAddEffect(cEntity & a_Entity, int a_EffectType, int a_EffectDurationTicks, int a_EffectIntensity, double a_DistanceModifier)
{
cCSLock Lock(m_CriticalSection);
bool res = false;
cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_ENTITY_ADD_EFFECT];
for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr)
{
- m_LuaState.Call((int)(**itr), &a_Entity, a_EffectType, a_EffectDurationTicks, a_EffectIntensity, a_Originator, a_DistanceModifier, cLuaState::Return, res);
+ m_LuaState.Call((int)(**itr), &a_Entity, a_EffectType, a_EffectDurationTicks, a_EffectIntensity, a_DistanceModifier, cLuaState::Return, res);
if (res)
{
return true;