Content packs indices auto build + WorldGenerator fix
This commit is contained in:
@@ -238,6 +238,10 @@ JObject& JArray::putObj() {
|
||||
return *obj;
|
||||
}
|
||||
|
||||
void JArray::remove(size_t index) {
|
||||
values.erase(values.begin() + index);
|
||||
}
|
||||
|
||||
JObject::~JObject() {
|
||||
for (auto entry : map) {
|
||||
delete entry.second;
|
||||
|
||||
@@ -68,6 +68,8 @@ namespace json {
|
||||
|
||||
JArray& putArray();
|
||||
JObject& putObj();
|
||||
|
||||
void remove(size_t index);
|
||||
};
|
||||
|
||||
class JObject {
|
||||
|
||||
Reference in New Issue
Block a user