mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
inventory convert fix (items count)
This commit is contained in:
parent
bad871b0a2
commit
2a77c24414
5 changed files with 16 additions and 4 deletions
|
|
@ -335,6 +335,10 @@ Map& Map::put(std::string key, std::unique_ptr<Value> value) {
|
|||
return *this;
|
||||
}
|
||||
|
||||
void Map::remove(const std::string& key) {
|
||||
values.erase(key);
|
||||
}
|
||||
|
||||
List& Map::putList(std::string key) {
|
||||
List* arr = new List();
|
||||
put(key, arr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue