mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-31 18:04:21 +07:00
JSON unitType class -> template
This commit is contained in:
parent
b47a8be8cf
commit
6db23c4d07
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user