summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.h
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.h
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.h')
-rw-r--r--src/Bindings/PluginLua.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginLua.h b/src/Bindings/PluginLua.h
index 6c59bbe1b..855813cc4 100644
--- a/src/Bindings/PluginLua.h
+++ b/src/Bindings/PluginLua.h
@@ -96,8 +96,8 @@ public:
virtual bool OnPlayerBrokenBlock (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override;
virtual bool OnPlayerDestroyed (cPlayer & a_Player) override;
virtual bool OnPlayerEating (cPlayer & a_Player) override;
- virtual bool OnPlayerFished (cPlayer & a_Player, const cItems & a_Reward) override;
- virtual bool OnPlayerFishing (cPlayer & a_Player, cItems & a_Reward) override;
+ virtual bool OnPlayerFished (cPlayer & a_Player, const cItems & a_Reward, const int ExperienceAmount) override;
+ virtual bool OnPlayerFishing (cPlayer & a_Player, cItems & a_Reward, int & ExperienceAmount) override;
virtual bool OnPlayerFoodLevelChange (cPlayer & a_Player, int a_NewFoodLevel) override;
virtual bool OnPlayerJoined (cPlayer & a_Player) override;
virtual bool OnPlayerLeftClick (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, char a_Status) override;