critical lua fixes

This commit is contained in:
MihailRis
2024-02-19 12:58:29 +03:00
parent 9d82e3416b
commit 086bcec9c2
9 changed files with 37 additions and 11 deletions
+4
View File
@@ -5,6 +5,10 @@
Inventory::Inventory(int64_t id, size_t size) : id(id), slots(size) {
}
Inventory::Inventory(const Inventory& orig) {
this->slots = orig.slots;
}
ItemStack& Inventory::getSlot(size_t index) {
return slots.at(index);
}