mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
InventoryBuilder used for access panel and hotbar
This commit is contained in:
parent
d9408a7cfc
commit
9e3c4fb00c
3 changed files with 23 additions and 36 deletions
|
|
@ -4,7 +4,7 @@ Inventory::Inventory(size_t size) : slots(size) {
|
|||
}
|
||||
|
||||
ItemStack& Inventory::getSlot(size_t index) {
|
||||
return slots[index];
|
||||
return slots.at(index);
|
||||
}
|
||||
|
||||
size_t Inventory::findEmptySlot(size_t begin, size_t end) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue