More patcher tests + unit type reassign support

This commit is contained in:
Anuken
2025-10-25 16:39:07 -04:00
parent 4812f89161
commit 09783898aa
3 changed files with 68 additions and 29 deletions

View File

@@ -742,7 +742,7 @@ public class ContentParser{
}
);
private Prov<Unit> unitType(JsonValue value){
Prov<Unit> unitType(JsonValue value){
if(value == null) return UnitEntity::create;
return switch(value.asString()){
case "flying" -> UnitEntity::create;