diff --git a/Content.Server/Corvax/GuideGenerator/HeatableRecipeEntry.cs b/Content.Server/Corvax/GuideGenerator/HeatableRecipeEntry.cs index e07eff5f94..73f22f5e64 100644 --- a/Content.Server/Corvax/GuideGenerator/HeatableRecipeEntry.cs +++ b/Content.Server/Corvax/GuideGenerator/HeatableRecipeEntry.cs @@ -3,6 +3,7 @@ using Robust.Shared.Prototypes; using Content.Shared.Construction; using Content.Shared.Construction.Prototypes; using Content.Shared.Construction.Steps; +using Robust.Server.GameObjects; namespace Content.Server.GuideGenerator; @@ -65,7 +66,7 @@ public sealed class HeatableRecipeEntry { var nodeStep = (TemperatureConstructionGraphStep)nodeStepRaw; graphID = nodeEdge.Target; // required to check when we need to leave second loop; this is the best solution, because nodeEdge.Target is marked as required datafield and cannot be null - EntityManager em = new(); + ServerEntityManager em = new(); MinTemp = nodeStep.MinTemperature.HasValue ? nodeStep.MinTemperature.Value : 0; Result = nodeStep.MinTemperature.HasValue ? constructionProto.Nodes[nodeEdge.Target].Entity.GetId(null, null, new GraphNodeEntityArgs(em)) : null; break; diff --git a/Content.Server/Corvax/GuideGenerator/ToolRecipeEntry.cs b/Content.Server/Corvax/GuideGenerator/ToolRecipeEntry.cs index c4d4cbde7b..23362457a6 100644 --- a/Content.Server/Corvax/GuideGenerator/ToolRecipeEntry.cs +++ b/Content.Server/Corvax/GuideGenerator/ToolRecipeEntry.cs @@ -3,6 +3,7 @@ using Robust.Shared.Prototypes; using Content.Shared.Construction; using Content.Shared.Construction.Prototypes; using Content.Shared.Construction.Steps; +using Robust.Server.GameObjects; namespace Content.Server.GuideGenerator; @@ -68,7 +69,7 @@ public sealed class ToolRecipeEntry // because of https://github.com/space-wizar { var nodeStep = (ToolConstructionGraphStep)nodeStepRaw; graphID = nodeEdge.Target; // required to check when we need to leave second loop; this is the best solution, because nodeEdge.Target is marked as required datafield and cannot be null - EntityManager em = new(); + ServerEntityManager em = new(); Tool = nodeStep.Tool; Result = constructionProto.Nodes[nodeEdge.Target].Entity.GetId(null, null, new GraphNodeEntityArgs(em)); break;