From c7a6f8f4d5706db6df60ce138a71991d3b5dafe9 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 16 Apr 2019 20:49:28 +1000 Subject: [PATCH] SPIGOT-4702: Exception when middle clicking certain slots By: md_5 --- paper-server/nms-patches/PlayerConnection.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/PlayerConnection.patch b/paper-server/nms-patches/PlayerConnection.patch index 7e42902e28..53c2f761ba 100644 --- a/paper-server/nms-patches/PlayerConnection.patch +++ b/paper-server/nms-patches/PlayerConnection.patch @@ -1332,7 +1332,7 @@ + case CLONE: + if (packetplayinwindowclick.d() == 2) { + click = ClickType.MIDDLE; -+ if (packetplayinwindowclick.c() == -999) { ++ if (packetplayinwindowclick.c() < 0) { + action = InventoryAction.NOTHING; + } else { + Slot slot = this.player.activeContainer.getSlot(packetplayinwindowclick.c());