From 61b19b31643983618bf6e83dfec39a5c1e5e6ced Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Wed, 12 Apr 2023 05:23:04 +1200 Subject: [PATCH] Remove unnecessary dependency injection from DoAfters (#15170) --- Content.Shared/DoAfter/SharedDoAfterSystem.Update.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/DoAfter/SharedDoAfterSystem.Update.cs b/Content.Shared/DoAfter/SharedDoAfterSystem.Update.cs index 71a09c700a..c47d9c6773 100644 --- a/Content.Shared/DoAfter/SharedDoAfterSystem.Update.cs +++ b/Content.Shared/DoAfter/SharedDoAfterSystem.Update.cs @@ -87,7 +87,7 @@ public abstract partial class SharedDoAfterSystem : EntitySystem // I feel like this is somewhat cursed, but its the only way I can think of without having to just send // redundant data over the network and increasing DoAfter boilerplate. var evType = typeof(DoAfterAttemptEvent<>).MakeGenericType(args.Event.GetType()); - doAfter.AttemptEvent = _factory.CreateInstance(evType, new object[] { doAfter, args.Event }); + doAfter.AttemptEvent = _factory.CreateInstance(evType, new object[] { doAfter, args.Event }, inject: false); } if (args.EventTarget != null) -- 2.51.2