From: Centronias Date: Sun, 5 Oct 2025 22:00:33 +0000 (-0700) Subject: Prioritize spoon mixing over drinking (#40704) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=326eaad18dc784e66970d0cb04bcd360324f2e9f;p=space-station-14.git Prioritize spoon mixing over drinking (#40704) * no, I can't use a spoon to drink a drink. * Update Content.Server/Chemistry/EntitySystems/ReactionMixerSystem.cs --- diff --git a/Content.Server/Chemistry/EntitySystems/ReactionMixerSystem.cs b/Content.Server/Chemistry/EntitySystems/ReactionMixerSystem.cs index 3913afbd07..ee99418970 100644 --- a/Content.Server/Chemistry/EntitySystems/ReactionMixerSystem.cs +++ b/Content.Server/Chemistry/EntitySystems/ReactionMixerSystem.cs @@ -19,7 +19,7 @@ public sealed partial class ReactionMixerSystem : EntitySystem { base.Initialize(); - SubscribeLocalEvent(OnAfterInteract); + SubscribeLocalEvent(OnAfterInteract, before: [typeof(IngestionSystem)]); SubscribeLocalEvent(OnShake); SubscribeLocalEvent(OnDoAfter); } @@ -29,12 +29,13 @@ public sealed partial class ReactionMixerSystem : EntitySystem if (!args.Target.HasValue || !args.CanReach || !entity.Comp.MixOnInteract) return; - if (!MixAttempt(entity, args.Target.Value, out var solution)) + if (!MixAttempt(entity, args.Target.Value, out _)) return; var doAfterArgs = new DoAfterArgs(EntityManager, args.User, entity.Comp.TimeToMix, new ReactionMixDoAfterEvent(), entity, args.Target.Value, entity); _doAfterSystem.TryStartDoAfter(doAfterArgs); + args.Handled = true; } private void OnDoAfter(Entity entity, ref ReactionMixDoAfterEvent args)