Skip to content

Commit

Permalink
ver 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
radistmorse committed Oct 12, 2019
1 parent 413645f commit 68ea8fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AdjustableModPanel.version
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
"VERSION": {
"MAJOR": 1,
"MINOR": 5,
"PATCH": 1,
"PATCH": 2,
"BUILD": 0
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 6,
"MINOR": 7,
"PATCH": 0
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 6,
"MINOR": 7,
"PATCH": 0
},
"KSP_VERSION_MAX": {
"MAJOR": 1,
"MINOR": 6,
"MINOR": 7,
"PATCH": 99
}
}
5 changes: 5 additions & 0 deletions ModPanelComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public void Update () {
myButton = mod;
}
var texture = (Texture2D) button.sprite.texture;

// button without a texture - very unnatural. Better ignore.
if (texture == null)
continue;

var func = button.onTrue.GetInvocationList ()[1];
var method = func.Method.Name;
var module = func.Method.Module.Name;
Expand Down

0 comments on commit 68ea8fc

Please sign in to comment.