Prevent erroneous materials from being placed in lathes. (#9454)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Nemanja
2022-07-06 23:44:31 -04:00
committed by GitHub
parent 9800701978
commit 52d2cc1de2
4 changed files with 44 additions and 6 deletions

View File

@@ -11,8 +11,7 @@ namespace Content.Shared.Lathe
public abstract class SharedLatheDatabaseComponent : Component, IEnumerable<LatheRecipePrototype>, ISerializationHooks
{
[DataField("recipes", customTypeSerializer: typeof(PrototypeIdListSerializer<LatheRecipePrototype>))] private List<string> _recipeIds = new();
private readonly List<LatheRecipePrototype> _recipes = new();
public readonly List<LatheRecipePrototype> _recipes = new();
void ISerializationHooks.BeforeSerialization()
{