[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.
This commit is contained in:
t00thpick1 2014-04-14 21:35:01 -04:00 committed by Travis Watkins
parent fc39b27d7c
commit dc194a97bb

View file

@ -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;