2021-06-15 10:59:31 +08:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2021-06-17 17:37:24 +08:00
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2021-06-15 10:59:31 +08: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
2021-10-05 11:14:11 +08:00
index 8424884bcd36e3daff47725ef343d9b99030bdc6..1252e77dc74880c8409dc5d6adf3d60e3e074e31 100644
2021-06-15 10:59:31 +08:00
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
2021-08-26 10:16:27 +08:00
@@ -1177,7 +1177,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Ser
2021-06-15 10:59:31 +08:00
}
itemstack.addTagElement("pages", (Tag) nbttaglist);
2021-06-15 12:01:27 +08:00
- CraftEventFactory.handleEditBookEvent(player, slot, handItem, itemstack); // CraftBukkit
2021-06-21 12:29:59 +08: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-15 10:59:31 +08:00
}
@Override