mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-12-22 08:27:37 +01:00
Fix slot index check (#4296)
This commit is contained in:
parent
fd164d20e7
commit
c9d5632143
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user