Skip to content

Commit

Permalink
releaseAction on release, instead of doing heldAction again
Browse files Browse the repository at this point in the history
  • Loading branch information
Docteh committed Nov 14, 2024
1 parent 17fd3b7 commit 47f501a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ShockOsc/Services/ShockOsc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,7 @@ private async Task CheckProgramGroup(ProgramGroup programGroup, Guid pos, Behavi
intensity = GetPhysbonePullIntensity(programGroup, programGroup.LastStretchValue);
programGroup.LastStretchValue = 0;

var heldAction = _configUtils.GetGroupOrGlobal(programGroup, behaviourConfig => behaviourConfig.WhileBoneHeld,
group => group.OverrideBoneHeldAction);

InstantAction(programGroup, GetDuration(programGroup), intensity, heldAction.ToControlType(), true);
InstantAction(programGroup, GetDuration(programGroup), intensity, releaseAction.ToControlType(), true);
return;
}

Expand Down

0 comments on commit 47f501a

Please sign in to comment.