From 6db23c4d07765adc835522a99e525724794ad2e5 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 25 Jun 2022 08:57:30 -0400 Subject: [PATCH] JSON unitType class -> template --- core/src/mindustry/mod/ContentParser.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/mod/ContentParser.java b/core/src/mindustry/mod/ContentParser.java index 5f20b73550..5238fa0f15 100644 --- a/core/src/mindustry/mod/ContentParser.java +++ b/core/src/mindustry/mod/ContentParser.java @@ -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");