diff options
author | Lukas Pioch <lukas@zgow.de> | 2017-08-04 12:07:10 +0200 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2017-08-27 14:54:44 +0200 |
commit | 099e82db67b093eb009c6c5d80278c2e5ee128ee (patch) | |
tree | 9ca877b573bbf507a152f024b91ef44d1608c788 /src/Bindings/PluginManager.cpp | |
parent | Removed unnecessary brackets (diff) | |
download | cuberite-099e82db67b093eb009c6c5d80278c2e5ee128ee.tar cuberite-099e82db67b093eb009c6c5d80278c2e5ee128ee.tar.gz cuberite-099e82db67b093eb009c6c5d80278c2e5ee128ee.tar.bz2 cuberite-099e82db67b093eb009c6c5d80278c2e5ee128ee.tar.lz cuberite-099e82db67b093eb009c6c5d80278c2e5ee128ee.tar.xz cuberite-099e82db67b093eb009c6c5d80278c2e5ee128ee.tar.zst cuberite-099e82db67b093eb009c6c5d80278c2e5ee128ee.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 19b337523..e36554e25 100644 --- a/src/Bindings/PluginManager.cpp +++ b/src/Bindings/PluginManager.cpp @@ -885,14 +885,14 @@ bool cPluginManager::CallHookPlayerEating(cPlayer & a_Player) -bool cPluginManager::CallHookPlayerEditedBook(cPlayer & a_Player, cBookContent & a_BookContent, bool a_IsSigned) +bool cPluginManager::CallHookPlayerEditedBook(cPlayer & a_Player, const cBookContent & a_NewContent, bool a_IsSigned) { FIND_HOOK(HOOK_PLAYER_EDITED_BOOK); VERIFY_HOOK; for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr) { - if ((*itr)->OnPlayerEditedBook(a_Player, a_BookContent, a_IsSigned)) + if ((*itr)->OnPlayerEditedBook(a_Player, a_NewContent, a_IsSigned)) { return true; } @@ -904,14 +904,14 @@ bool cPluginManager::CallHookPlayerEditedBook(cPlayer & a_Player, cBookContent & -bool cPluginManager::CallHookPlayerEditingBook(cPlayer & a_Player, cBookContent & a_BookContent, bool a_IsSigned) +bool cPluginManager::CallHookPlayerEditingBook(cPlayer & a_Player, const cBookContent & a_OriginalContent, cBookContent & a_NewContent, bool a_IsSigned) { FIND_HOOK(HOOK_PLAYER_EDITING_BOOK); VERIFY_HOOK; for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr) { - if ((*itr)->OnPlayerEditingBook(a_Player, a_BookContent, a_IsSigned)) + if ((*itr)->OnPlayerEditingBook(a_Player, a_OriginalContent, a_NewContent, a_IsSigned)) { return true; } |