From dc194a97bb09f5260cce4532f06294e0a1124ae0 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Mon, 14 Apr 2014 21:35:01 -0400 Subject: [PATCH] [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. --- src/main/java/net/minecraft/server/PlayerConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java index 00d924c11b..9fa307ef59 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;