added error print for SetThrusterPower in order to catch nil thruster references

This commit is contained in:
2026-06-29 14:10:17 -05:00
parent e13ae84aae
commit dd4bc11c43

View File

@@ -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