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/Protocol/Protocol_1_9.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/Protocol/Protocol_1_9.cpp')
-rw-r--r-- | src/Protocol/Protocol_1_9.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp index 1ee0f450e..712658329 100644 --- a/src/Protocol/Protocol_1_9.cpp +++ b/src/Protocol/Protocol_1_9.cpp @@ -2967,7 +2967,8 @@ void cProtocol_1_9_0::HandleVanillaPluginMessage(cByteBuffer & a_ByteBuffer, con cBookContent::ParseFromNBT(0, BookItem.m_BookContent, NBT); } - if (cRoot::Get()->GetPluginManager()->CallHookPlayerEditingBook(Player, BookItem.m_BookContent, IsSigned)) + // The equipped item contains the old book content + if (cRoot::Get()->GetPluginManager()->CallHookPlayerEditingBook(Player, Player.GetEquippedItem().m_BookContent, BookItem.m_BookContent, IsSigned)) { // Plugin denied the editing of the book return; |