From 9ccd8bff332b89de3e5bfedda6ba9975c4ca55d8 Mon Sep 17 00:00:00 2001 From: MrMicky Date: Sat, 3 Apr 2021 09:09:00 +0200 Subject: [PATCH] Fix error with shit-click on offhand slot on 1.8 servers (#2419) --- .../bukkit/providers/BukkitInventoryQuickMoveProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInventoryQuickMoveProvider.java b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInventoryQuickMoveProvider.java index 2075240be..94a568995 100644 --- a/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInventoryQuickMoveProvider.java +++ b/bukkit/src/main/java/us/myles/ViaVersion/bukkit/providers/BukkitInventoryQuickMoveProvider.java @@ -69,7 +69,7 @@ public class BukkitInventoryQuickMoveProvider extends InventoryQuickMoveProvider if (windowId == 0) { // windowId is always 0 for player inventory. // This has almost definitely something to do with the offhand slot. - if (slotId >= 36 && slotId <= 44) { + if (slotId >= 36 && slotId <= 45) { int protocolId = Via.getAPI().getServerVersion().lowestSupportedVersion(); // this seems to be working just fine. if (protocolId == ProtocolVersion.v1_8.getVersion()) {