Make CrawlUnit jsonable (#6915)
This commit is contained in:
@@ -567,7 +567,8 @@ public class ContentParser{
|
|||||||
case "tank" -> TankUnit::create;
|
case "tank" -> TankUnit::create;
|
||||||
case "hover" -> ElevationMoveUnit::create;
|
case "hover" -> ElevationMoveUnit::create;
|
||||||
case "tether" -> BuildingTetherPayloadUnit::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'.");
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user