summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2017-05-09 13:21:03 +0200
committerLukas Pioch <lukas@zgow.de>2017-05-09 14:10:53 +0200
commit3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c (patch)
tree78f4f70ccad9c0534119651db7af7e7ec478485f /src/Bindings/PluginLua.cpp
parentUpdated Core and ProtectionAreas to latest. (diff)
downloadcuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar.gz
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar.bz2
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar.lz
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar.xz
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.tar.zst
cuberite-3d5ee3e5c7d29fc2a4f8e0c49d53c9d488a76e5c.zip
Diffstat (limited to 'src/Bindings/PluginLua.cpp')
-rw-r--r--src/Bindings/PluginLua.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index 202477962..7de1dbb78 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -605,7 +605,8 @@ bool cPluginLua::OnPlayerFoodLevelChange(cPlayer & a_Player, int a_NewFoodLevel)
bool cPluginLua::OnPlayerFished(cPlayer & a_Player, const cItems & a_Reward)
{
- return CallSimpleHooks(cPluginManager::HOOK_PLAYER_FISHED, &a_Player, a_Reward);
+ cItems reward(a_Reward);
+ return CallSimpleHooks(cPluginManager::HOOK_PLAYER_FISHED, &a_Player, &reward);
}