From 6062ab46f17112a33e92111232d8388cbac2ad94 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Thu, 8 Apr 2021 21:54:18 -0700 Subject: [PATCH] [CI-SKIP] Drop `Allow PlayerEditBookEvent to fire for off hand` (#5471) Upstream fixed this in a different way (using -1 for off hand instead of the real slot id...) so this patch is no longer needed. --- ...erEditBookEvent-to-fire-for-off-hand.patch | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 Spigot-API-Patches/Allow-PlayerEditBookEvent-to-fire-for-off-hand.patch diff --git a/Spigot-API-Patches/Allow-PlayerEditBookEvent-to-fire-for-off-hand.patch b/Spigot-API-Patches/Allow-PlayerEditBookEvent-to-fire-for-off-hand.patch deleted file mode 100644 index 8d1dbdeef7..0000000000 --- a/Spigot-API-Patches/Allow-PlayerEditBookEvent-to-fire-for-off-hand.patch +++ /dev/null @@ -1,19 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> -Date: Mon, 5 Apr 2021 18:35:37 -0700 -Subject: [PATCH] Allow PlayerEditBookEvent to fire for off hand - - -diff --git a/src/main/java/org/bukkit/event/player/PlayerEditBookEvent.java b/src/main/java/org/bukkit/event/player/PlayerEditBookEvent.java -index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 ---- a/src/main/java/org/bukkit/event/player/PlayerEditBookEvent.java -+++ b/src/main/java/org/bukkit/event/player/PlayerEditBookEvent.java -@@ -0,0 +0,0 @@ public class PlayerEditBookEvent extends PlayerEvent implements Cancellable { - public PlayerEditBookEvent(@NotNull Player who, int slot, @NotNull BookMeta previousBookMeta, @NotNull BookMeta newBookMeta, boolean isSigning) { - super(who); - -- Validate.isTrue(slot >= -1 && slot <= 8, "Slot must be in range (-1)-8 inclusive"); -+ Validate.isTrue(slot == 40 || slot >= -1 && slot <= 8, "Slot must be in range (-1)-8 inclusive"); // Paper - off hand is 40 - Validate.notNull(previousBookMeta, "Previous book meta must not be null"); - Validate.notNull(newBookMeta, "New book meta must not be null"); -