Skip to content

Commit

Permalink
Fixed exception with secondary mode = none
Browse files Browse the repository at this point in the history
  • Loading branch information
MCJack123 committed Mar 14, 2021
1 parent c525407 commit 6177a81
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0")]
[assembly: AssemblyFileVersion("1.2.0")]
[assembly: AssemblyVersion("1.2.1")]
[assembly: AssemblyFileVersion("1.2.1")]
10 changes: 5 additions & 5 deletions Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ public void OnApply() {
for (int i = 0; i < modeOptions.Count; i++) {
if (modeOptions[i] as string == listChoice) {
PluginConfig.Instance.mode = i >= (int)PluginConfig.MeasurementMode.None ? i + 1 : i;
ok++;
break;
}
}
for (int i = 0; i < secondaryModeOptions.Count; i++) {
if (secondaryModeOptions[i] as string == secondaryListChoice) {
PluginConfig.Instance.secondaryMode = i;
ok++;
break;
}
if (ok >= 2) break;
}
ok = 0;
for (int i = 0; i < sideOptions.Count; i++) {
if (sideOptions[i] as string == sideChoice) {
PluginConfig.Instance.side = i;
Expand All @@ -74,7 +74,7 @@ public void OnApply() {
Settings() {
listChoice = modeOptions[PluginConfig.Instance.mode] as string;
sideChoice = sideOptions[PluginConfig.Instance.side] as string;
secondaryListChoice = modeOptions[PluginConfig.Instance.secondaryMode] as string;
secondaryListChoice = secondaryModeOptions[PluginConfig.Instance.secondaryMode] as string;
secondarySideChoice = sideOptions[PluginConfig.Instance.secondarySide] as string;
}
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "PerformanceMeter",
"name": "PerformanceMeter",
"author": "JackMacWindows",
"version": "1.2.0",
"version": "1.2.1",
"description": "Shows a graph of your energy bar, percentage level, or cut value throughout a map on the end screen.",
"gameVersion": "1.13.4",
"dependsOn": {
Expand Down

0 comments on commit 6177a81

Please sign in to comment.