Fix weird rotation when strapped to a bed (#24746)

* Gotta watch out for those tricky radians

* Change StrapComponent instead
This commit is contained in:
Tayrtahn
2024-01-30 18:23:30 -05:00
committed by GitHub
parent 8cb6420ed6
commit 652e2b7a41
2 changed files with 3 additions and 3 deletions

View File

@@ -357,7 +357,7 @@ public abstract partial class SharedBuckleSystem
if (TryComp<AppearanceComponent>(buckleUid, out var appearance))
Appearance.SetData(buckleUid, BuckleVisuals.Buckled, true, appearance);
_rotationVisuals.SetHorizontalAngle(buckleUid, strapComp.Rotation);
_rotationVisuals.SetHorizontalAngle(buckleUid, strapComp.Rotation);
ReAttach(buckleUid, strapUid, buckleComp, strapComp);
SetBuckledTo(buckleUid, strapUid, strapComp, buckleComp);