2021-06-14 19:59:31 -07:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2021-06-17 02:37:24 -07:00
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2021-06-14 19:59:31 -07:00
Date: Mon, 5 Apr 2021 18:35:15 -0700
Subject: [PATCH] Don't ignore result of PlayerEditBookEvent
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
2022-07-03 14:55:56 -07:00
index a45b2909300e0a66d92702eb85e541e621d27fea..f582c7c41022c8b94ea6c7bc0ac9312499e7c434 100644
2021-06-14 19:59:31 -07:00
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
2022-06-09 13:55:33 +02:00
@@ -1221,7 +1221,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Ser
2021-06-14 19:59:31 -07:00
}
2021-11-24 12:15:19 -08:00
itemstack.addTagElement("pages", nbttaglist);
2021-06-14 21:01:27 -07:00
- CraftEventFactory.handleEditBookEvent(player, slot, handItem, itemstack); // CraftBukkit
2021-06-21 00:29:59 -04:00
+ this.player.getInventory().setItem(slot, CraftEventFactory.handleEditBookEvent(player, slot, handItem, itemstack)); // CraftBukkit // Paper - Don't ignore result (see other callsite for handleEditBookEvent)
2021-06-14 19:59:31 -07:00
}
@Override