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/PluginManager.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/PluginManager.cpp')
-rw-r--r-- | src/Bindings/PluginManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp index d790562dc..5a287136b 100644 --- a/src/Bindings/PluginManager.cpp +++ b/src/Bindings/PluginManager.cpp @@ -775,11 +775,11 @@ bool cPluginManager::CallHookPlayerFoodLevelChange(cPlayer & a_Player, int a_New -bool cPluginManager::CallHookPlayerFished(cPlayer & a_Player, const cItems & a_Reward) +bool cPluginManager::CallHookPlayerFished(cPlayer & a_Player, const cItems & a_Reward, const int ExperienceAmount) { return GenericCallHook(HOOK_PLAYER_FISHED, [&](cPlugin * a_Plugin) { - return a_Plugin->OnPlayerFished(a_Player, a_Reward); + return a_Plugin->OnPlayerFished(a_Player, a_Reward, ExperienceAmount); } ); } @@ -788,11 +788,11 @@ bool cPluginManager::CallHookPlayerFished(cPlayer & a_Player, const cItems & a_R -bool cPluginManager::CallHookPlayerFishing(cPlayer & a_Player, cItems a_Reward) +bool cPluginManager::CallHookPlayerFishing(cPlayer & a_Player, cItems & a_Reward, int & ExperienceAmount) { return GenericCallHook(HOOK_PLAYER_FISHING, [&](cPlugin * a_Plugin) { - return a_Plugin->OnPlayerFishing(a_Player, a_Reward); + return a_Plugin->OnPlayerFishing(a_Player, a_Reward, ExperienceAmount); } ); } |