From dd4bc11c43ddd6a869ca9045994e04c21880f63f Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Mon, 29 Jun 2026 14:10:17 -0500 Subject: [PATCH] added error print for SetThrusterPower in order to catch nil thruster references --- main.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.lua b/main.lua index 82c318f..f8b3343 100644 --- a/main.lua +++ b/main.lua @@ -656,6 +656,10 @@ end -- thruster is a thruster type, power is a vector from 0.0 to 1.0 function SetThrusterPower(thruster, power) + if thruster == nil then + print("ERROR: SetThrusterPower called with nil thruster.") + return + end if thruster.type == "rotator" then thruster.power = power local actualPower = 0