1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Serialize tool capabilities JSON without whitespace

fixes #11087
This commit is contained in:
sfan5 2021-03-20 22:06:17 +01:00
parent 042131d91d
commit 531e7ef8eb
3 changed files with 13 additions and 4 deletions

View file

@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "log.h"
#include "inventory.h"
#include "exceptions.h"
#include "convert_json.h"
#include "util/serialize.h"
#include "util/numeric.h"
@ -142,7 +143,7 @@ void ToolCapabilities::serializeJson(std::ostream &os) const
}
root["damage_groups"] = damage_groups_object;
os << root;
fastWriteJson(root, os);
}
void ToolCapabilities::deserializeJson(std::istream &is)