mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-14 04:01:47 +03:00
enabledOptional
This commit is contained in:
parent
72701e0775
commit
4a74816634
13 changed files with 13 additions and 0 deletions
|
@ -22,6 +22,7 @@ updateVerify: [
|
||||||
];
|
];
|
||||||
updateExclusions: [];
|
updateExclusions: [];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
useWhitelist: false;
|
useWhitelist: false;
|
||||||
whitelist: [];
|
whitelist: [];
|
||||||
|
|
|
@ -22,6 +22,7 @@ updateVerify: [
|
||||||
];
|
];
|
||||||
updateExclusions: [];
|
updateExclusions: [];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
useWhitelist: false;
|
useWhitelist: false;
|
||||||
whitelist: [];
|
whitelist: [];
|
||||||
|
|
|
@ -22,6 +22,7 @@ updateVerify: [
|
||||||
];
|
];
|
||||||
updateExclusions: [];
|
updateExclusions: [];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
useWhitelist: false;
|
useWhitelist: false;
|
||||||
whitelist: [];
|
whitelist: [];
|
||||||
|
|
|
@ -22,6 +22,7 @@ updateVerify: [
|
||||||
];
|
];
|
||||||
updateExclusions: [];
|
updateExclusions: [];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
# Client launcher params
|
# Client launcher params
|
||||||
mainClass: "net.minecraft.client.main.Main";
|
mainClass: "net.minecraft.client.main.Main";
|
||||||
|
|
|
@ -22,6 +22,7 @@ updateVerify: [
|
||||||
];
|
];
|
||||||
updateExclusions: [];
|
updateExclusions: [];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
# Client launcher params
|
# Client launcher params
|
||||||
mainClass: "net.minecraft.client.main.Main";
|
mainClass: "net.minecraft.client.main.Main";
|
||||||
|
|
|
@ -21,6 +21,7 @@ updateVerify: [
|
||||||
];
|
];
|
||||||
updateExclusions: [];
|
updateExclusions: [];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
useWhitelist: false;
|
useWhitelist: false;
|
||||||
whitelist: [];
|
whitelist: [];
|
||||||
|
|
|
@ -21,6 +21,7 @@ updateVerify: [
|
||||||
];
|
];
|
||||||
updateExclusions: [];
|
updateExclusions: [];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
useWhitelist: false;
|
useWhitelist: false;
|
||||||
whitelist: [];
|
whitelist: [];
|
||||||
|
|
|
@ -22,6 +22,7 @@ updateVerify: [
|
||||||
];
|
];
|
||||||
updateExclusions: [];
|
updateExclusions: [];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
useWhitelist: false;
|
useWhitelist: false;
|
||||||
whitelist: [];
|
whitelist: [];
|
||||||
|
|
|
@ -26,6 +26,7 @@ updateExclusions: [
|
||||||
# "mods/railcraft"
|
# "mods/railcraft"
|
||||||
];
|
];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
useWhitelist: false;
|
useWhitelist: false;
|
||||||
whitelist: [];
|
whitelist: [];
|
||||||
|
|
|
@ -22,6 +22,7 @@ updateVerify: [
|
||||||
];
|
];
|
||||||
updateExclusions: [];
|
updateExclusions: [];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
useWhitelist: false;
|
useWhitelist: false;
|
||||||
whitelist: [];
|
whitelist: [];
|
||||||
|
|
|
@ -22,6 +22,7 @@ updateVerify: [
|
||||||
];
|
];
|
||||||
updateExclusions: [];
|
updateExclusions: [];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
useWhitelist: false;
|
useWhitelist: false;
|
||||||
whitelist: [];
|
whitelist: [];
|
||||||
|
|
|
@ -22,6 +22,7 @@ updateVerify: [
|
||||||
];
|
];
|
||||||
updateExclusions: [];
|
updateExclusions: [];
|
||||||
updateOptional: [];
|
updateOptional: [];
|
||||||
|
enabledOptional: [];
|
||||||
|
|
||||||
useWhitelist: false;
|
useWhitelist: false;
|
||||||
whitelist: [];
|
whitelist: [];
|
||||||
|
|
|
@ -136,6 +136,7 @@ public ClientProfile(BlockConfigEntry block) {
|
||||||
block.getEntry("updateVerify", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(updateVerify::add);
|
block.getEntry("updateVerify", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(updateVerify::add);
|
||||||
block.getEntry("updateOptional", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(e -> updateOptional.add(new MarkedString(e)));
|
block.getEntry("updateOptional", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(e -> updateOptional.add(new MarkedString(e)));
|
||||||
block.getEntry("updateExclusions", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(updateExclusions::add);
|
block.getEntry("updateExclusions", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(updateExclusions::add);
|
||||||
|
block.getEntry("enabledOptional", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(e -> updateOptional.stream().anyMatch(e1 -> e.equals(e1.string) && (e1.mark = true)));
|
||||||
updateFastCheck = block.getEntry("updateFastCheck", BooleanConfigEntry.class);
|
updateFastCheck = block.getEntry("updateFastCheck", BooleanConfigEntry.class);
|
||||||
useWhitelist = block.getEntry("useWhitelist", BooleanConfigEntry.class);
|
useWhitelist = block.getEntry("useWhitelist", BooleanConfigEntry.class);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue