@@ -116,14 +116,8 @@ public sealed class FoodSequenceSystem : SharedFoodSequenceSystem
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
//looking for a suitable FoodSequence prototype
|
//looking for a suitable FoodSequence prototype
|
||||||
ProtoId<FoodSequenceElementPrototype> elementProto = string.Empty;
|
if (!element.Comp.Entries.TryGetValue(start.Comp.Key, out var elementProto))
|
||||||
foreach (var pair in element.Comp.Entries)
|
return false;
|
||||||
{
|
|
||||||
if (pair.Key == start.Comp.Key)
|
|
||||||
{
|
|
||||||
elementProto = pair.Value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!_proto.TryIndex(elementProto, out var elementIndexed))
|
if (!_proto.TryIndex(elementProto, out var elementIndexed))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user