fixed a runtime error
This commit is contained in:
parent
981d59e934
commit
10f930d20d
1 changed files with 6 additions and 5 deletions
11
Program.cs
11
Program.cs
|
@ -172,11 +172,10 @@ namespace IngameScript
|
|||
}
|
||||
}
|
||||
|
||||
public void Save(bool isDocked)
|
||||
public void Save()
|
||||
{
|
||||
_isDocked = isDocked;
|
||||
_storageIni.Clear();
|
||||
_storageIni.Set("AutomaticConnectorActions", "Is_Docked", isDocked);
|
||||
_storageIni.Set("AutomaticConnectorActions", "Is_Docked", _isDocked);
|
||||
Storage = _storageIni.ToString();
|
||||
}
|
||||
|
||||
|
@ -260,7 +259,8 @@ namespace IngameScript
|
|||
Echo("Set grid batteries to recharge.");
|
||||
}
|
||||
|
||||
Save(true);
|
||||
_isDocked = true;
|
||||
Save();
|
||||
}
|
||||
|
||||
private void Undock()
|
||||
|
@ -367,7 +367,8 @@ namespace IngameScript
|
|||
Echo("Turned on grid thrusters.");
|
||||
}
|
||||
|
||||
Save(false);
|
||||
_isDocked = false;
|
||||
Save();
|
||||
}
|
||||
|
||||
public void Main(string argument, UpdateType updateSource)
|
||||
|
|
Loading…
Reference in a new issue