Фикс хуйни (#405)

* Фикс хуйни

* Этого не должно было быть

* Меньше проверок и переменных

* Фиксы фикса фиксов

* юзинг
This commit is contained in:
ThereDrD0
2023-09-16 00:55:42 +03:00
committed by Aviu00
parent 9aff581859
commit 7625a6ccbb

View File

@@ -272,6 +272,12 @@ public sealed class WieldableSystem : EntitySystem
private void OnVirtualItemDeleted(EntityUid uid, WieldableComponent component, VirtualItemDeletedEvent args)
{
// WD edit
if (component.ForceTwoHanded && TryComp<HandsComponent>(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);
}