diff options
author | Feyo Korenhof <35343640+feyokorenhof@users.noreply.github.com> | 2021-11-29 13:53:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 13:53:58 +0100 |
commit | 1be14ebf7f38ab446907b4c111370b3a62bdc268 (patch) | |
tree | 18c8b88096469ae04fff1228230ee3b7f0152ecb /src/Bindings/PluginLua.cpp | |
parent | Protocol: modernise plugin message handling (#5325) (diff) | |
download | cuberite-1be14ebf7f38ab446907b4c111370b3a62bdc268.tar cuberite-1be14ebf7f38ab446907b4c111370b3a62bdc268.tar.gz cuberite-1be14ebf7f38ab446907b4c111370b3a62bdc268.tar.bz2 cuberite-1be14ebf7f38ab446907b4c111370b3a62bdc268.tar.lz cuberite-1be14ebf7f38ab446907b4c111370b3a62bdc268.tar.xz cuberite-1be14ebf7f38ab446907b4c111370b3a62bdc268.tar.zst cuberite-1be14ebf7f38ab446907b4c111370b3a62bdc268.zip |
Diffstat (limited to 'src/Bindings/PluginLua.cpp')
-rw-r--r-- | src/Bindings/PluginLua.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp index 5e29319ca..393516c95 100644 --- a/src/Bindings/PluginLua.cpp +++ b/src/Bindings/PluginLua.cpp @@ -632,19 +632,19 @@ bool cPluginLua::OnPlayerFoodLevelChange(cPlayer & a_Player, int a_NewFoodLevel) -bool cPluginLua::OnPlayerFished(cPlayer & a_Player, const cItems & a_Reward) +bool cPluginLua::OnPlayerFished(cPlayer & a_Player, const cItems & a_Reward, const int ExperienceAmount) { cItems reward(a_Reward); - return CallSimpleHooks(cPluginManager::HOOK_PLAYER_FISHED, &a_Player, &reward); + return CallSimpleHooks(cPluginManager::HOOK_PLAYER_FISHED, &a_Player, &reward, ExperienceAmount); } -bool cPluginLua::OnPlayerFishing(cPlayer & a_Player, cItems & a_Reward) +bool cPluginLua::OnPlayerFishing(cPlayer & a_Player, cItems & a_Reward, int & ExperienceAmount) { - return CallSimpleHooks(cPluginManager::HOOK_PLAYER_FISHING, &a_Player, &a_Reward); + return CallSimpleHooks(cPluginManager::HOOK_PLAYER_FISHING, &a_Player, &a_Reward, &ExperienceAmount); } |