From cacf26d74062f8760ad1797caf8903170cc8a9ad Mon Sep 17 00:00:00 2001 From: Slava0135 <40753025+Slava0135@users.noreply.github.com> Date: Thu, 29 Jun 2023 12:36:09 +0300 Subject: [PATCH] Fix lubed item smart equip (#17727) * fix * left over comment --- Content.Server/Lube/LubeSystem.cs | 1 - Content.Server/Lube/LubedSystem.cs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Lube/LubeSystem.cs b/Content.Server/Lube/LubeSystem.cs index 972da9b908..51ffc5c136 100644 --- a/Content.Server/Lube/LubeSystem.cs +++ b/Content.Server/Lube/LubeSystem.cs @@ -23,7 +23,6 @@ public sealed class LubeSystem : EntitySystem SubscribeLocalEvent(OnInteract); } - // When glue bottle is used on item it will apply the glued and unremoveable components. private void OnInteract(EntityUid uid, LubeComponent component, AfterInteractEvent args) { if (args.Handled) diff --git a/Content.Server/Lube/LubedSystem.cs b/Content.Server/Lube/LubedSystem.cs index d81005e631..f786c5f91a 100644 --- a/Content.Server/Lube/LubedSystem.cs +++ b/Content.Server/Lube/LubedSystem.cs @@ -43,6 +43,7 @@ public sealed class LubedSystem : EntitySystem args.Cancel(); var user = args.Container.Owner; _transform.SetCoordinates(uid, Transform(user).Coordinates); + _transform.AttachToGridOrMap(uid); _throwing.TryThrow(uid, _random.NextVector2(), strength: component.SlipStrength); _popup.PopupEntity(Loc.GetString("lube-slip", ("target", Identity.Entity(uid, EntityManager))), user, user, PopupType.MediumCaution); }