From 7625a6ccbb8ac232f5900c360270d8ea11fac9e8 Mon Sep 17 00:00:00 2001 From: ThereDrD0 <88589686+ThereDrD0@users.noreply.github.com> Date: Sat, 16 Sep 2023 00:55:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D1=85=D1=83=D0=B9?= =?UTF-8?q?=D0=BD=D0=B8=20(#405)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Фикс хуйни * Этого не должно было быть * Меньше проверок и переменных * Фиксы фикса фиксов * юзинг --- Content.Shared/Wieldable/WieldableSystem.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Content.Shared/Wieldable/WieldableSystem.cs b/Content.Shared/Wieldable/WieldableSystem.cs index dcbe9a7f81..b0bb13b90c 100644 --- a/Content.Shared/Wieldable/WieldableSystem.cs +++ b/Content.Shared/Wieldable/WieldableSystem.cs @@ -272,6 +272,12 @@ public sealed class WieldableSystem : EntitySystem private void OnVirtualItemDeleted(EntityUid uid, WieldableComponent component, VirtualItemDeletedEvent args) { + // WD edit + if (component.ForceTwoHanded && TryComp(args.User, out var handsComponent)) + { + _handsSystem.TryDrop(args.User, uid, Transform(args.User).Coordinates, false, true, handsComponent); + } + if (args.BlockingEntity == uid && component.Wielded) TryUnwield(args.BlockingEntity, component, args.User); }