JSON unitType class -> template

This commit is contained in:
Anuken 2022-06-25 08:57:30 -04:00
parent b47a8be8cf
commit 6db23c4d07

View File

@ -445,10 +445,10 @@ public class ContentParser{
UnitType unit;
if(locate(ContentType.unit, name) == null){
unit = make(resolve(value.getString("class", ""), UnitType.class), mod + "-" + name);
unit = make(resolve(value.getString("template", ""), UnitType.class), mod + "-" + name);
if(value.has("class")){
value.remove("class");
if(value.has("template")){
value.remove("template");
}
var typeVal = value.get("type");