From 910c2da9bbef1e2e39605b97d8646c7d2a83ad37 Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Mon, 19 Jun 2023 13:43:20 -0400 Subject: [PATCH] fix-lathe-recipe-dupes (#17473) --- Content.Server/Lathe/LatheSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Lathe/LatheSystem.cs b/Content.Server/Lathe/LatheSystem.cs index d3fa6d23cd..c19a093097 100644 --- a/Content.Server/Lathe/LatheSystem.cs +++ b/Content.Server/Lathe/LatheSystem.cs @@ -101,7 +101,7 @@ namespace Content.Server.Lathe { var ev = new LatheGetRecipesEvent(uid) { - Recipes = component.StaticRecipes + Recipes = new List(component.StaticRecipes) }; RaiseLocalEvent(uid, ev); return ev.Recipes; @@ -195,7 +195,7 @@ namespace Content.Server.Lathe foreach (var recipe in latheComponent.DynamicRecipes) { - if (!component.UnlockedRecipes.Contains(recipe)) + if (!component.UnlockedRecipes.Contains(recipe) || args.Recipes.Contains(recipe)) continue; args.Recipes.Add(recipe); }