updateShared

This commit is contained in:
Gravit 2018-11-08 19:50:24 +07:00
parent 874a30eb6b
commit 30ae80c1a1
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
13 changed files with 14 additions and 0 deletions

View file

@ -21,6 +21,7 @@ updateVerify: [
"minecraft.jar", "forge.jar", "liteloader.jar"
];
updateExclusions: [];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -21,6 +21,7 @@ updateVerify: [
"minecraft.jar", "forge.jar", "liteloader.jar"
];
updateExclusions: [];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -21,6 +21,7 @@ updateVerify: [
"minecraft.jar", "forge.jar", "liteloader.jar"
];
updateExclusions: [];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -21,6 +21,7 @@ updateVerify: [
"minecraft\\.jar"
];
updateExclusions: [];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -21,6 +21,7 @@ updateVerify: [
"minecraft\\.jar"
];
updateExclusions: [];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -20,6 +20,7 @@ updateVerify: [
"libraries", "natives", "mods", "minecraft.jar"
];
updateExclusions: [];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -20,6 +20,7 @@ updateVerify: [
"libraries", "natives", "mods", "minecraft.jar"
];
updateExclusions: [];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -21,6 +21,7 @@ updateVerify: [
"minecraft.jar", "forge.jar", "liteloader.jar"
];
updateExclusions: [];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -25,6 +25,7 @@ updateExclusions: [
# "mods/ic2",
# "mods/railcraft"
];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -21,6 +21,7 @@ updateVerify: [
"minecraft.jar", "forge.jar", "liteloader.jar"
];
updateExclusions: [];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -21,6 +21,7 @@ updateVerify: [
"minecraft.jar", "forge.jar", "liteloader.jar"
];
updateExclusions: [];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -21,6 +21,7 @@ updateVerify: [
"minecraft.jar", "forge.jar", "liteloader.jar"
];
updateExclusions: [];
updateShared: [];
updateOptional: [];
enabledOptional: [];

View file

@ -109,6 +109,7 @@ public int hashCode() {
// Updater and client watch service
private final List<String> update = new ArrayList<>();
private final List<String> updateExclusions = new ArrayList<>();
private final List<String> updateShared = new ArrayList<>();
private final List<String> updateVerify = new ArrayList<>();
private final Set<MarkedString> updateOptional = new HashSet<>();
private final BooleanConfigEntry updateFastCheck;
@ -139,6 +140,7 @@ public ClientProfile(BlockConfigEntry block) {
// Updater and client watch service
block.getEntry("update", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(update::add);
block.getEntry("updateVerify", ListConfigEntry.class).stream(StringConfigEntry.class).forEach(updateVerify::add);
block.getEntry("updateShared", 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("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)));