Skip to content

Commit

Permalink
Cryo fixes again (#735)
Browse files Browse the repository at this point in the history
* Fix the DoAfter

* Fix again

* Fix again
  • Loading branch information
Mnemotechnician authored Dec 22, 2023
1 parent 9487383 commit c9c96fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Server/_NF/CryoSleep/CryoSleepSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ private void OnAutoCryoSleep(EntityUid uid, CryoSleepComponent component, CryoSt
if (args.Cancelled || args.Handled)
return;

var body = args.Used;
var pod = args.Target;
var pod = args.Used;
var body = args.Target;
if (body is not { Valid: true } || pod is not { Valid: true })
return;

Expand Down Expand Up @@ -305,7 +305,7 @@ public bool EjectBody(EntityUid pod, CryoSleepComponent? component = null, Entit
return false;

component.BodyContainer.Remove(toEject.Value, force: true);
_climb.ForciblySetClimbing(toEject.Value, pod);
//_climb.ForciblySetClimbing(toEject.Value, pod);

if (component.CryosleepDoAfter != null && _doAfter.GetStatus(component.CryosleepDoAfter) == DoAfterStatus.Running)
_doAfter.Cancel(component.CryosleepDoAfter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@
delay: 999999
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.45,-0.45,0.45,0.45"
density: 190
mask:
- MachineMask
layer:
- MobLayer # To allow people to pass through
- type: MaterialStorage
- type: Appearance
- type: Climbable
Expand Down

0 comments on commit c9c96fc

Please sign in to comment.