Validate some SpeciesPrototype fields (#35965)
* Convert SpeciesPrototype strings to ProtoIds * Simplify protoman indexing calls
This commit is contained in:
@@ -152,7 +152,7 @@ public sealed partial class MarkingSet
|
||||
|
||||
var toRemove = new List<(MarkingCategories category, string id)>();
|
||||
var speciesProto = prototypeManager.Index<SpeciesPrototype>(species);
|
||||
var onlyWhitelisted = prototypeManager.Index<MarkingPointsPrototype>(speciesProto.MarkingPoints).OnlyWhitelisted;
|
||||
var onlyWhitelisted = prototypeManager.Index(speciesProto.MarkingPoints).OnlyWhitelisted;
|
||||
|
||||
foreach (var (category, list) in Markings)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user