Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 5540ac0

Browse files
authored
Merge pull request #27 from Falki-git/main
Fix NRE when creating a node when Micro Engineer isn't open
2 parents 075bc7d + b257b57 commit 5540ac0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

MicroEngineerProject/MicroEngineer/MicroEngineerMod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace MicroMod
1010
{
11-
[BepInPlugin("com.micrologist.microengineer", "MicroEngineer", "1.0.2")]
11+
[BepInPlugin("com.micrologist.microengineer", "MicroEngineer", "1.0.3")]
1212
[BepInDependency(SpaceWarpPlugin.ModGuid, SpaceWarpPlugin.ModVer)]
1313
public class MicroEngineerMod : BaseSpaceWarpPlugin
1414
{

MicroEngineerProject/MicroEngineer/Windows/ManeuverWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private void RefreshManeuverNodes()
9191

9292
internal void OnManeuverCreatedMessage(MessageCenterMessage message)
9393
{
94-
var nodeData = Utility.ActiveVessel.SimulationObject?.FindComponent<ManeuverPlanComponent>()?.GetNodes();
94+
var nodeData = Utility.ActiveVessel?.SimulationObject?.FindComponent<ManeuverPlanComponent>()?.GetNodes();
9595
_selectedNodeIndex = nodeData != null ? nodeData.Count > 0 ? nodeData.Count - 1 : 0 : 0;
9696
}
9797

Staging/BepInEx/plugins/micro_engineer/swinfo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Micro Engineer",
55
"description": "Get in-flight and VAB information about your current vessel",
66
"source": "https://github.com/Micrologist/MicroEngineer",
7-
"version": "1.0.2",
7+
"version": "1.0.3",
88
"version_check": "https://raw.githubusercontent.com/Micrologist/MicroEngineer/main/Staging/BepInEx/plugins/micro_engineer/swinfo.json",
99
"dependencies": [
1010
{

0 commit comments

Comments
 (0)