mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-08 23:07:33 +07:00
JSON unitType class -> template
This commit is contained in:
@ -445,10 +445,10 @@ public class ContentParser{
|
|||||||
UnitType unit;
|
UnitType unit;
|
||||||
if(locate(ContentType.unit, name) == null){
|
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")){
|
if(value.has("template")){
|
||||||
value.remove("class");
|
value.remove("template");
|
||||||
}
|
}
|
||||||
|
|
||||||
var typeVal = value.get("type");
|
var typeVal = value.get("type");
|
||||||
|
Reference in New Issue
Block a user