Merge branch 'master' into fix-conflict-40263
This commit is contained in:
@@ -45,7 +45,7 @@ public sealed class FoodSequenceSystem : SharedFoodSequenceSystem
|
||||
if (!TryComp<FoodSequenceStartPointComponent>(args.Start, out var start))
|
||||
return;
|
||||
|
||||
if (!_proto.TryIndex(args.Proto, out var elementProto))
|
||||
if (!_proto.Resolve(args.Proto, out var elementProto))
|
||||
return;
|
||||
|
||||
if (!ent.Comp.OnlyFinal || elementProto.Final || start.FoodLayers.Count == start.MaxLayers)
|
||||
@@ -118,7 +118,7 @@ public sealed class FoodSequenceSystem : SharedFoodSequenceSystem
|
||||
if (!element.Comp1.Entries.TryGetValue(start.Comp.Key, out var elementProto))
|
||||
return false;
|
||||
|
||||
if (!_proto.TryIndex(elementProto, out var elementIndexed))
|
||||
if (!_proto.Resolve(elementProto, out var elementIndexed))
|
||||
return false;
|
||||
|
||||
//if we run out of space, we can still put in one last, final finishing element.
|
||||
@@ -185,7 +185,7 @@ public sealed class FoodSequenceSystem : SharedFoodSequenceSystem
|
||||
var nameCounter = 1;
|
||||
foreach (var proto in existedContentNames)
|
||||
{
|
||||
if (!_proto.TryIndex(proto, out var protoIndexed))
|
||||
if (!_proto.Resolve(proto, out var protoIndexed))
|
||||
continue;
|
||||
|
||||
if (protoIndexed.Name is null)
|
||||
|
||||
Reference in New Issue
Block a user