From ed25934cb742503cd847f4027004d43d86caa0f8 Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Mon, 29 Jun 2026 21:56:04 -0500 Subject: [PATCH] hopefully fix SetThrusterPower for rotators with analog transmissions --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 2890957..0f7f762 100644 --- a/main.lua +++ b/main.lua @@ -788,7 +788,7 @@ function SetThrusterPower(thruster, power) end if Config.Debug then print("DEBUG: thruster "..thruster.name..": power "..power) end - + if thruster.type == "rotator" then thruster.power = power local actualPower = 0 @@ -818,7 +818,7 @@ function SetThrusterPower(thruster, power) if actualPower < 1 then actualPower = 15 -- signal 15 will decouple the speed and stop the motion end - if actualPower <= 15 then + if actualPower <= 15 and actualPower > 1 then actualPower = actualPower - 1 end