when the transform
This commit is contained in:
@@ -687,9 +687,7 @@ namespace Content.Server.GameObjects.EntitySystems.Click
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(item.TryGetComponent<ITransformComponent>(out var transformComponent))
|
item.Transform.LocalRotation = intentional ? Angle.Zero : (_random.Next(0, 100) / 100f) * MathHelper.TwoPi;
|
||||||
transformComponent.LocalRotation = intentional ? Angle.Zero : (_random.Next(0, 100) / 100f) * MathHelper.TwoPi;
|
|
||||||
|
|
||||||
|
|
||||||
var comps = item.GetAllComponents<IDropped>().ToList();
|
var comps = item.GetAllComponents<IDropped>().ToList();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user