From ffdf1d17fe6b9a123ab5fa800e43350974f54c1c Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 9 May 2021 22:36:19 +0200 Subject: [PATCH] when the transform --- .../GameObjects/EntitySystems/Click/InteractionSystem.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs b/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs index ef3d530b8f..2cd8a13cd5 100644 --- a/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/Click/InteractionSystem.cs @@ -687,9 +687,7 @@ namespace Content.Server.GameObjects.EntitySystems.Click return; } - if(item.TryGetComponent(out var transformComponent)) - transformComponent.LocalRotation = intentional ? Angle.Zero : (_random.Next(0, 100) / 100f) * MathHelper.TwoPi; - + item.Transform.LocalRotation = intentional ? Angle.Zero : (_random.Next(0, 100) / 100f) * MathHelper.TwoPi; var comps = item.GetAllComponents().ToList();