From 917c7b37f0e90feb9e1045a5f519b7e0edbbf230 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 16:43:53 +0000 Subject: [PATCH 1/2] Initial plan From b0d9803c37d938bfbd3dcd6790e284fb2a6d34b5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 16:48:17 +0000 Subject: [PATCH 2/2] Fix Default Stages bug: ensure newState is set correctly with forceChange Co-authored-by: Flohhhhh <48927090+Flohhhhh@users.noreply.github.com> --- ulc/client/c_buttons.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ulc/client/c_buttons.lua b/ulc/client/c_buttons.lua index cb529c7..21eb4ea 100644 --- a/ulc/client/c_buttons.lua +++ b/ulc/client/c_buttons.lua @@ -81,10 +81,18 @@ function ULC:SetStage(extra, action, playSound, extraOnly, repair, forceChange, if IsVehicleExtraTurnedOn(MyVehicle, extra) then if action == 1 or action == 2 then newState = 1 + elseif action == 0 then + -- extra is already ON and we want to enable it (action 0) + -- set newState to 0 (ON) to handle forceChange correctly + newState = 0 end else if action == 0 or action == 2 then newState = 0 + elseif action == 1 then + -- extra is already OFF and we want to disable it (action 1) + -- set newState to 1 (OFF) to handle forceChange correctly + newState = 1 end end