From 54fcdb70f0481919a62d4d885d9f9c3621463a36 Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Sun, 24 Jul 2022 07:37:29 -0400 Subject: [PATCH] Prevent Glass duplication in lathes (#9954) * lathes have been handled ;) * Update LatheSystem.cs --- Content.Server/Lathe/LatheSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Server/Lathe/LatheSystem.cs b/Content.Server/Lathe/LatheSystem.cs index d765c02fc7..9d16f9c6c9 100644 --- a/Content.Server/Lathe/LatheSystem.cs +++ b/Content.Server/Lathe/LatheSystem.cs @@ -122,6 +122,10 @@ namespace Content.Server.Lathe /// private void OnInteractUsing(EntityUid uid, LatheComponent component, InteractUsingEvent args) { + if (args.Handled) + return; + args.Handled = true; + if (!TryComp(uid, out var storage) || !TryComp(args.Used, out var material) || component.LatheWhitelist?.IsValid(args.Used) == false)