summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorFeyo Korenhof <35343640+feyokorenhof@users.noreply.github.com>2021-11-29 13:53:58 +0100
committerGitHub <noreply@github.com>2021-11-29 13:53:58 +0100
commit1be14ebf7f38ab446907b4c111370b3a62bdc268 (patch)
tree18c8b88096469ae04fff1228230ee3b7f0152ecb /src/Bindings/PluginLua.cpp
parentProtocol: modernise plugin message handling (#5325) (diff)
downloadcuberite-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.cpp8
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);
}