From c9d5632143b0285d6215a0e3adbfa1e1589d164c Mon Sep 17 00:00:00 2001 From: riku6460 <17585784+riku6460@users.noreply.github.com> Date: Sat, 7 Dec 2024 01:04:30 +0900 Subject: [PATCH] Fix slot index check (#4296) --- .../viaversion/bukkit/providers/BukkitPickItemProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/com/viaversion/viaversion/bukkit/providers/BukkitPickItemProvider.java b/bukkit/src/main/java/com/viaversion/viaversion/bukkit/providers/BukkitPickItemProvider.java index 7cedde50f..3d31ea0bd 100644 --- a/bukkit/src/main/java/com/viaversion/viaversion/bukkit/providers/BukkitPickItemProvider.java +++ b/bukkit/src/main/java/com/viaversion/viaversion/bukkit/providers/BukkitPickItemProvider.java @@ -157,7 +157,7 @@ public final class BukkitPickItemProvider extends PickItemProvider { } private void moveToHotbar(final PlayerInventory inventory, final int sourceSlot, final ItemStack[] contents) { - if (sourceSlot <= 9) { + if (sourceSlot < 9) { inventory.setHeldItemSlot(sourceSlot); return; }