Fix slot index check (#4296)

This commit is contained in:
riku6460 2024-12-07 01:04:30 +09:00 committed by GitHub
parent fd164d20e7
commit c9d5632143
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}