Merge branch 'master' into fix-conflict-40263
This commit is contained in:
@@ -399,7 +399,7 @@ namespace Content.Shared.Preferences
|
||||
// Category not found so dump it.
|
||||
TraitCategoryPrototype? traitCategory = null;
|
||||
|
||||
if (category != null && !protoManager.TryIndex(category, out traitCategory))
|
||||
if (category != null && !protoManager.Resolve(category, out traitCategory))
|
||||
return new(this);
|
||||
|
||||
var list = new HashSet<ProtoId<TraitPrototype>>(_traitPreferences) { traitId };
|
||||
@@ -665,7 +665,7 @@ namespace Content.Shared.Preferences
|
||||
}
|
||||
|
||||
// No category so dump it.
|
||||
if (!protoManager.TryIndex(traitProto.Category, out var category))
|
||||
if (!protoManager.Resolve(traitProto.Category, out var category))
|
||||
continue;
|
||||
|
||||
var existing = groups.GetOrNew(category.ID);
|
||||
|
||||
Reference in New Issue
Block a user