diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-07-01 12:39:56 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-07-01 12:39:56 +0200 |
commit | 37276a4430e26f5b3ab56e07d5f30a194f75982e (patch) | |
tree | 95ba9a0a151dc9f4111d8b99e8af728993daa783 /source/Plugin_NewLua.cpp | |
parent | Changed the crafting recipe for book to match vanilla since 1.3.1 (fix contributed by mgueydan) (diff) | |
download | cuberite-37276a4430e26f5b3ab56e07d5f30a194f75982e.tar cuberite-37276a4430e26f5b3ab56e07d5f30a194f75982e.tar.gz cuberite-37276a4430e26f5b3ab56e07d5f30a194f75982e.tar.bz2 cuberite-37276a4430e26f5b3ab56e07d5f30a194f75982e.tar.lz cuberite-37276a4430e26f5b3ab56e07d5f30a194f75982e.tar.xz cuberite-37276a4430e26f5b3ab56e07d5f30a194f75982e.tar.zst cuberite-37276a4430e26f5b3ab56e07d5f30a194f75982e.zip |
Diffstat (limited to 'source/Plugin_NewLua.cpp')
-rw-r--r-- | source/Plugin_NewLua.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Plugin_NewLua.cpp b/source/Plugin_NewLua.cpp index 1e4a6a94a..c79106761 100644 --- a/source/Plugin_NewLua.cpp +++ b/source/Plugin_NewLua.cpp @@ -549,7 +549,7 @@ bool cPlugin_NewLua::OnHandshake(cClientHandle * a_Client, const AString & a_Use -bool cPlugin_NewLua::OnKilling(cPawn & a_Victim, cEntity * a_Killer) +bool cPlugin_NewLua::OnKilling(cEntity & a_Victim, cEntity * a_Killer) { cCSLock Lock(m_CriticalSection); const char * FnName = GetHookFnName(cPluginManager::HOOK_KILLING); @@ -559,7 +559,7 @@ bool cPlugin_NewLua::OnKilling(cPawn & a_Victim, cEntity * a_Killer) return false; } - tolua_pushusertype(m_LuaState, &a_Victim, "cPawn"); + tolua_pushusertype(m_LuaState, &a_Victim, "cEntity"); tolua_pushusertype(m_LuaState, a_Killer, "cEntity"); if (!CallFunction(2, 1, FnName)) @@ -1150,7 +1150,7 @@ bool cPlugin_NewLua::OnPreCrafting(const cPlayer * a_Player, const cCraftingGrid -bool cPlugin_NewLua::OnTakeDamage(cPawn & a_Receiver, TakeDamageInfo & a_TDI) +bool cPlugin_NewLua::OnTakeDamage(cEntity & a_Receiver, TakeDamageInfo & a_TDI) { cCSLock Lock(m_CriticalSection); const char * FnName = GetHookFnName(cPluginManager::HOOK_TAKE_DAMAGE); @@ -1160,7 +1160,7 @@ bool cPlugin_NewLua::OnTakeDamage(cPawn & a_Receiver, TakeDamageInfo & a_TDI) return false; } - tolua_pushusertype(m_LuaState, &a_Receiver, "cPawn"); + tolua_pushusertype(m_LuaState, &a_Receiver, "cEntity"); tolua_pushusertype(m_LuaState, &a_TDI, "TakeDamageInfo"); if (!CallFunction(2, 1, FnName)) |