removes beforeserialization hook (#12319)
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Content.Server.Lathe.Components;
|
||||
using Content.Shared.Lathe;
|
||||
using Content.Shared.Materials;
|
||||
using Content.Shared.Research.Prototypes;
|
||||
using Content.Server.Research.Components;
|
||||
using Content.Server.Research;
|
||||
using Content.Shared.Research.Components;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Prototypes;
|
||||
using JetBrains.Annotations;
|
||||
using System.Linq;
|
||||
using Content.Server.Construction;
|
||||
using Content.Server.Lathe.Components;
|
||||
using Content.Server.Materials;
|
||||
using Content.Server.Power.Components;
|
||||
using Content.Server.Power.EntitySystems;
|
||||
using Content.Server.Research;
|
||||
using Content.Server.Research.Components;
|
||||
using Content.Server.UserInterface;
|
||||
using Content.Shared.Lathe;
|
||||
using Content.Shared.Materials;
|
||||
using Content.Shared.Research.Components;
|
||||
using Content.Shared.Research.Prototypes;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Timing;
|
||||
|
||||
namespace Content.Server.Lathe
|
||||
@@ -202,8 +202,9 @@ namespace Content.Server.Lathe
|
||||
return;
|
||||
|
||||
//gets all of the techs that are unlocked and also in the DynamicRecipes list
|
||||
var allTechs = (from tech in component.Technologies
|
||||
from recipe in tech.UnlockedRecipes
|
||||
var allTechs = (from technology in from tech in component.TechnologyIds
|
||||
select _proto.Index<TechnologyPrototype>(tech)
|
||||
from recipe in technology.UnlockedRecipes
|
||||
where latheComponent.DynamicRecipes.Contains(recipe)
|
||||
select recipe).ToList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user