From 0aa3ae21d21aadcc818e9f3be83b43dc40fe551e Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Fri, 22 Aug 2025 23:28:20 +0200 Subject: [PATCH] Set some field as readonly --- AutoPilot/Program.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/AutoPilot/Program.cs b/AutoPilot/Program.cs index 5f5eae9..229c605 100644 --- a/AutoPilot/Program.cs +++ b/AutoPilot/Program.cs @@ -2,7 +2,6 @@ * API index: https://github.com/malware-dev/MDK-SE/wiki/Api-Index * Vector transformation: https://github.com/malware-dev/MDK-SE/wiki/Vector-Transformations-with-World-Matrices * How to get rotation/position: https://forum.keenswh.com/threads/how-do-i-get-the-world-position-and-rotation-of-a-ship.7363867/ - * */ using Sandbox.Game.EntityComponents; @@ -49,11 +48,11 @@ namespace IngameScript readonly Output output; - IMyRemoteControl remoteController; - IMyCubeGrid grid; + readonly IMyRemoteControl remoteController; + readonly IMyCubeGrid grid; readonly List gyros = new List(); - IMyBroadcastListener connnectorMinerPositionListener; + readonly IMyBroadcastListener connnectorMinerPositionListener; MatrixD connectorMinerPosition; public Program()