From 17fd3b7117dd33eee18725cdb85928a6ecf29668 Mon Sep 17 00:00:00 2001 From: Kyle Kienapfel Date: Thu, 14 Nov 2024 03:17:10 -0800 Subject: [PATCH 1/2] Fix small mistake --- ShockOsc/Ui/Pages/Dash/Tabs/GroupsTab.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShockOsc/Ui/Pages/Dash/Tabs/GroupsTab.razor b/ShockOsc/Ui/Pages/Dash/Tabs/GroupsTab.razor index 17e30b8..a2ffdea 100644 --- a/ShockOsc/Ui/Pages/Dash/Tabs/GroupsTab.razor +++ b/ShockOsc/Ui/Pages/Dash/Tabs/GroupsTab.razor @@ -250,7 +250,7 @@
- + @foreach (var boneHeldAction in BoneActionExtensions.BoneActions) { @boneHeldAction From 47f501a34cf58330857923f58557ff119411ce89 Mon Sep 17 00:00:00 2001 From: Kyle Kienapfel Date: Thu, 14 Nov 2024 04:00:44 -0800 Subject: [PATCH 2/2] releaseAction on release, instead of doing heldAction again --- ShockOsc/Services/ShockOsc.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ShockOsc/Services/ShockOsc.cs b/ShockOsc/Services/ShockOsc.cs index 8f2b422..4deded7 100644 --- a/ShockOsc/Services/ShockOsc.cs +++ b/ShockOsc/Services/ShockOsc.cs @@ -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; }