13
0
geforkt von Mirrors/Paper

[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.
Dieser Commit ist enthalten in:
t00thpick1 2014-04-14 21:35:01 -04:00 committet von Travis Watkins
Ursprung fc39b27d7c
Commit dc194a97bb

Datei anzeigen

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