Skip to content

Commit 9c2e1be

Browse files
committed
invert update setting
1 parent 8f95cfa commit 9c2e1be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PolyTechMain.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static ConfigDefinition
3737
forceCheatDef = new ConfigDefinition("PolyTech Framework", "Force Cheat Flag"),
3838
sandboxEverywhereDef = new ConfigDefinition("PolyTech Framework", "Sandbox Everywhere"),
3939
globalToggleHotkeyDef = new ConfigDefinition("PolyTech Framework", "Global Toggle Hotkey"),
40-
updateBlockDef = new ConfigDefinition("PolyTech Framework", "Remove Mod Update Notifications"),
40+
checkModUpdatesDef = new ConfigDefinition("PolyTech Framework", "Check for Mod Updates"),
4141
leaderboardProtMinDef = new ConfigDefinition("Leaderboard Protection", "Minimum Score"),
4242
leaderboardCheckDef = new ConfigDefinition("Leaderboard Protection", "Confirm Before Upload"),
4343
leaderboardBlockDef = new ConfigDefinition("Leaderboard Protection", "Block All Scores");
@@ -50,7 +50,7 @@ public static ConfigEntry<bool>
5050
sandboxEverywhere,
5151
leaderboardCheck,
5252
leaderboardBlock,
53-
updateBlock;
53+
checkModUpdates;
5454
public static ConfigEntry<int>
5555
leaderboardProtMin;
5656
public static ConfigEntry<BepInEx.Configuration.KeyboardShortcut>
@@ -97,7 +97,7 @@ public void Awake()
9797
sandboxEverywhere.SettingChanged += sandboxEverywhereToggle;
9898

9999
globalToggleHotkey = Config.Bind(globalToggleHotkeyDef, new BepInEx.Configuration.KeyboardShortcut(KeyCode.BackQuote, KeyCode.LeftAlt), new ConfigDescription("Keybind used to toggle mods without opening the config menu."));
100-
updateBlock = Config.Bind(updateBlockDef, false, new ConfigDescription("Prevents the mod update notifications from appearing at launch when out of date mods are being used"));
100+
checkModUpdates = Config.Bind(checkModUpdatesDef, true, new ConfigDescription("Checks if new versions of installed mods are available on game startup"));
101101
leaderboardProtMin = Config.Bind(leaderboardProtMinDef, 71, new ConfigDescription("Minimum value allowed to upload to leaderboard. 71 is the minimum to protect from automatic shadowbans."));
102102
leaderboardProtMin.SettingChanged += onLeaderboardProtChange;
103103
leaderboardCheck = Config.Bind(leaderboardCheckDef, false, new ConfigDescription("If checked, the game will confirm with the user before uploading scores to the leaderboard."));
@@ -268,7 +268,7 @@ public override void disableMod()
268268

269269
public static void checkForModUpdate(PolyTechMod plugin)
270270
{
271-
if(updateBlock.Value) return;
271+
if(!checkModUpdates.Value) return;
272272
if (plugin.repositoryUrl == null) return;
273273
var client = new WebClient();
274274
client.Headers.Add("User-Agent", "Nothing");

0 commit comments

Comments
 (0)