From fa3e4a7a640ccf360f33a9f0e8ef183d284c59ac Mon Sep 17 00:00:00 2001 From: xen-42 Date: Tue, 7 Jan 2025 00:33:40 -0500 Subject: [PATCH] Fix issues with Escape Room --- NewHorizons/External/Configs/PlanetConfig.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NewHorizons/External/Configs/PlanetConfig.cs b/NewHorizons/External/Configs/PlanetConfig.cs index 526b489d..0d268192 100644 --- a/NewHorizons/External/Configs/PlanetConfig.cs +++ b/NewHorizons/External/Configs/PlanetConfig.cs @@ -699,7 +699,7 @@ namespace NewHorizons.External.Configs foreach (var quantumGroup in Props.quantumGroups) { - if (quantumGroup.type == QuantumGroupType.Sockets && existingGroupsPropCounts.GetValueOrDefault(quantumGroup.id) >= quantumGroup.sockets?.Length) + if (quantumGroup.type == QuantumGroupType.Sockets && existingGroupsPropCounts.GetValueOrDefault(quantumGroup.id) > quantumGroup.sockets?.Length) { NHLogger.LogError($"quantumGroup {quantumGroup.id} is of type \"sockets\" and has more props than sockets."); quantumGroup.type = QuantumGroupType.FailedValidation; @@ -731,6 +731,8 @@ namespace NewHorizons.External.Configs { Props.stateQuantumGroups = stateQuantumGroups.ToArray(); } + + Props.details = Props.details.Where(x => string.IsNullOrEmpty(x.quantumGroupID)).ToArray(); } } #endregion