diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch index 5a557edda0..3e77187ab5 100644 --- a/nms-patches/PlayerConnection.patch +++ b/nms-patches/PlayerConnection.patch @@ -1310,8 +1310,8 @@ + } + break; + case SWAP: -+ if (packetplayinwindowclick.d() >= 0 && packetplayinwindowclick.d() < 9) { -+ click = ClickType.NUMBER_KEY; ++ if ((packetplayinwindowclick.d() >= 0 && packetplayinwindowclick.d() < 9) || packetplayinwindowclick.d() == 40) { ++ click = (packetplayinwindowclick.d() == 40) ? ClickType.SWAP_OFFHAND : ClickType.NUMBER_KEY; + Slot clickedSlot = this.player.activeContainer.getSlot(packetplayinwindowclick.c()); + if (clickedSlot.isAllowed(player)) { + ItemStack hotbar = this.player.inventory.getItem(packetplayinwindowclick.d());