Make CrawlUnit jsonable (#6915)

This commit is contained in:
smol
2022-06-08 08:41:16 -04:00
committed by GitHub
parent 4e2b555813
commit 48e058d663
+3 -2
View File
@@ -567,7 +567,8 @@ public class ContentParser{
case "tank" -> TankUnit::create;
case "hover" -> ElevationMoveUnit::create;
case "tether" -> BuildingTetherPayloadUnit::create;
default -> throw new RuntimeException("Invalid unit type: '" + value + "'. Must be 'flying/mech/legs/naval/payload/missile/tether'.");
case "crawl" -> CrawlUnit::create;
default -> throw new RuntimeException("Invalid unit type: '" + value + "'. Must be 'flying/mech/legs/naval/payload/missile/tether/crawl'.");
};
}
@@ -1012,4 +1013,4 @@ public class ContentParser{
void parsed(Class<?> type, JsonValue jsonData, Object result);
}
}
}