public void SetCanReturnToBody(SharedGhostComponent component, bool canReturn) { if (component.CanReturnToBody == canReturn) { return; } component.CanReturnToBody = canReturn; component.Dirty(); }
private void OnGhostChangeCanReturnToBody(EntityUid uid, SharedGhostComponent component, GhostChangeCanReturnToBodyEvent args) { if (component.CanReturnToBody == args.CanReturnToBody) { return; } component.CanReturnToBody = args.CanReturnToBody; component.Dirty(); }