From 51d62deced826e7b9cb2d645862c1b30ca0d7b67 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 16 Apr 2019 20:49:28 +1000 Subject: [PATCH] SPIGOT-4702: Exception when middle clicking certain slots --- nms-patches/PlayerConnection.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch index 7e42902e28..53c2f761ba 100644 --- a/nms-patches/PlayerConnection.patch +++ b/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());