diff options
author | t00thpick1 <t00thpick1dirko@gmail.com> | 2014-04-14 21:35:01 -0400 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2014-04-17 02:17:25 -0500 |
commit | dc194a97bb09f5260cce4532f06294e0a1124ae0 (patch) | |
tree | 98c2eeaddcf07808c674edc80e8e1bd1b295624b | |
parent | fc39b27d7c9f2f5fad271b0419d5f15302771d1e (diff) | |
download | craftbukkit-dc194a97bb09f5260cce4532f06294e0a1124ae0.tar craftbukkit-dc194a97bb09f5260cce4532f06294e0a1124ae0.tar.gz craftbukkit-dc194a97bb09f5260cce4532f06294e0a1124ae0.tar.lz craftbukkit-dc194a97bb09f5260cce4532f06294e0a1124ae0.tar.xz craftbukkit-dc194a97bb09f5260cce4532f06294e0a1124ae0.zip |
[Bleeding] Re-add missed diff in 1.7.5 update. Fixes BUKKIT-5536
In the 1.7.5 update the diff that called book edit events when editing
books was accidentally dropped because of nms changes within the file.
This commit re-adds the craftbukkit call to restore event behavior.
-rw-r--r-- | src/main/java/net/minecraft/server/PlayerConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java index 00d924c1..9fa307ef 100644 --- a/src/main/java/net/minecraft/server/PlayerConnection.java +++ b/src/main/java/net/minecraft/server/PlayerConnection.java @@ -1665,7 +1665,7 @@ public class PlayerConnection implements PacketPlayInListener { itemstack1 = this.player.inventory.getItemInHand(); if (itemstack1 != null) { if (itemstack.getItem() == Items.BOOK_AND_QUILL && itemstack.getItem() == itemstack1.getItem()) { - itemstack1.a("pages", (NBTBase) itemstack.getTag().getList("pages", 8)); + CraftEventFactory.handleEditBookEvent(player, itemstack); // CraftBukkit } return; |