mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: actual block inventory size not updating on inventory-size property update
This commit is contained in:
parent
352ef6485a
commit
1ba5b0ce33
3 changed files with 25 additions and 3 deletions
|
|
@ -45,6 +45,10 @@ void Inventory::move(
|
|||
}
|
||||
}
|
||||
|
||||
void Inventory::resize(uint newSize) {
|
||||
slots.resize(newSize);
|
||||
}
|
||||
|
||||
void Inventory::deserialize(const dv::value& src) {
|
||||
id = src["id"].asInteger(1);
|
||||
auto& slotsarr = src["slots"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue