JSON UnitType type: support

This commit is contained in:
Anuken
2022-05-21 12:40:16 -04:00
parent b010e9d720
commit b8dac1e408
3 changed files with 3 additions and 3 deletions

View File

@@ -437,7 +437,9 @@ public class ContentParser{
UnitType unit;
if(locate(ContentType.unit, name) == null){
unit = new UnitType(mod + "-" + name);
unit = make(resolve(value.getString("type", ""), UnitType.class), mod + "-" + name);
var typeVal = value.get("type");
if(typeVal != null && !typeVal.isString()){