feat: add #hotbar mask and pattern (#2769)

- closes #2765
This commit is contained in:
Jordan
2024-06-13 20:31:34 +02:00
committed by GitHub
parent 9843bb0188
commit 865cc55a0e
8 changed files with 143 additions and 0 deletions

View File

@ -192,6 +192,9 @@ public class BukkitPlayerBlockBag extends BlockBag implements SlottableBlockBag
@Override
public BaseItem getItem(int slot) {
loadInventory();
if (items[slot] == null) {
return null;
}
return BukkitAdapter.adapt(items[slot]);
}