mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-03 06:17:43 +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) {
|
private void moveToHotbar(final PlayerInventory inventory, final int sourceSlot, final ItemStack[] contents) {
|
||||||
if (sourceSlot <= 9) {
|
if (sourceSlot < 9) {
|
||||||
inventory.setHeldItemSlot(sourceSlot);
|
inventory.setHeldItemSlot(sourceSlot);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user