mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix ForceGroup merging and PresetGroup handling
This commit is contained in:
@@ -214,10 +214,8 @@ class Faction:
|
||||
ShipUnitType.named(n) for n in json.get("naval_units", [])
|
||||
]
|
||||
|
||||
# This has to be loaded AFTER GroundUnitType and ShipUnitType to work properly
|
||||
faction.preset_groups = [
|
||||
ForceGroup.for_faction_by_name(n, faction)
|
||||
for n in json.get("preset_groups", [])
|
||||
ForceGroup.named(n) for n in json.get("preset_groups", [])
|
||||
]
|
||||
|
||||
faction.requirements = json.get("requirements", {})
|
||||
|
||||
Reference in New Issue
Block a user