[FIX] Альтернативное зеркало и фиксы профилей

This commit is contained in:
Gravit 2020-07-15 10:54:10 +07:00
parent b92e9a1d29
commit cd890a73ee
No known key found for this signature in database
GPG key ID: 98A079490768CCE5
18 changed files with 144 additions and 60 deletions

View file

@ -63,6 +63,14 @@ public void invoke(String... args) throws IOException, CommandException {
client.setTitle(dirName);
client.setDir(dirName);
client.setUUID(UUID.randomUUID());
if(client.getServers() != null)
{
ClientProfile.ServerProfile serverProfile = client.getDefaultServerProfile();
if(serverProfile != null)
{
serverProfile.name = dirName;
}
}
try (BufferedWriter writer = IOHelper.newWriter(IOHelper.resolveIncremental(server.profilesDir,
dirName, "json"))) {
Launcher.gsonManager.configGson.toJson(client, writer);

View file

@ -48,7 +48,7 @@ public final class LaunchServerConfig {
public static LaunchServerConfig getDefault(LaunchServer.LaunchServerEnv env) {
LaunchServerConfig newConfig = new LaunchServerConfig();
newConfig.mirrors = new String[]{"https://mirror.gravit.pro/"};
newConfig.mirrors = new String[]{"https://mirror.gravit.pro/", "https://gravit-launcher-mirror.storage.googleapis.com/"};
newConfig.launch4j = new LaunchServerConfig.ExeConf();
newConfig.launch4j.enabled = true;
newConfig.launch4j.copyright = "© GravitLauncher Team";

View file

@ -6,14 +6,16 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "xxxxxxxx",
"serverAddress": "localhost",
"serverPort": 25565,
"update": ["servers.dat"],
"updateExclusions": [
"mods/OpenSecurity",
"mods/VoxelMods",
"mods/railcraft"
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],
"updateVerify": [
"libraries", "natives", "mods",

View file

@ -6,14 +6,16 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "xxxxxxxx",
"serverAddress": "localhost",
"serverPort": 25565,
"update": ["servers.dat"],
"updateExclusions": [
"mods/OpenSecurity",
"mods/VoxelMods",
"mods/railcraft"
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],
"updateVerify": [
"libraries", "natives", "mods",

View file

@ -6,14 +6,16 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "xxxxxxxx",
"serverAddress": "localhost",
"serverPort": 25565,
"update": ["servers.dat"],
"updateExclusions": [
"mods/OpenSecurity",
"mods/VoxelMods",
"mods/railcraft"
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],
"updateVerify": [
"libraries", "natives", "mods",
@ -35,8 +37,8 @@
],
"classPath": ["forge.jar", "liteloader.jar", "minecraft.jar", "libraries"],
"clientArgs": [
"--tweakClass", "net.minecraftforge.fml.common.launcher.FMLTweaker",
"--tweakClass", "com.mumfrey.liteloader.launch.LiteLoaderTweaker"
"--tweakClass", "com.mumfrey.liteloader.launch.LiteLoaderTweaker",
"--tweakClass", "net.minecraftforge.fml.common.launcher.FMLTweaker"
],
"optionalJVMArgs": [],
"optionalClientArgs": [],

View file

@ -6,14 +6,16 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "xxxxxxxx",
"serverAddress": "localhost",
"serverPort": 25565,
"update": ["servers.dat"],
"updateExclusions": [
"mods/OpenSecurity",
"mods/VoxelMods",
"mods/railcraft"
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],
"updateVerify": [
"libraries", "natives", "mods",

View file

@ -6,14 +6,16 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "xxxxxxxx",
"serverAddress": "localhost",
"serverPort": 25565,
"update": ["servers.dat"],
"updateExclusions": [
"mods/OpenSecurity",
"mods/VoxelMods",
"mods/railcraft"
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],
"updateVerify": [
"libraries", "natives", "mods",

View file

@ -6,8 +6,14 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "xxxxxxxx",
"serverAddress": "localhost",
"serverPort": 25565,
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": [
"servers.dat"
],

View file

@ -6,8 +6,14 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "xxxxxxxx",
"serverAddress": "localhost",
"serverPort": 25565,
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": [
"servers.dat"
],

View file

@ -6,8 +6,14 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "xxxxxxxx",
"serverAddress": "localhost",
"serverPort": 25565,
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": [
"servers.dat"
],

View file

@ -6,8 +6,14 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "xxxxxxxx",
"serverAddress": "localhost",
"serverPort": 25565,
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": [
"servers.dat"
],

View file

@ -6,8 +6,14 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "Test1.4.7",
"serverAddress": "localhost",
"serverPort": 25565,
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],

View file

@ -6,8 +6,14 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "Test1.5.2",
"serverAddress": "localhost",
"serverPort": 25565,
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],

View file

@ -6,8 +6,14 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "Test1.6.4",
"serverAddress": "localhost",
"serverPort": 25565,
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],

View file

@ -6,8 +6,14 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "Test1.7.10",
"serverAddress": "localhost",
"serverPort": 25565,
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],

View file

@ -6,8 +6,14 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "Test1.7.2",
"serverAddress": "localhost",
"serverPort": 25565,
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],

View file

@ -6,8 +6,14 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "Test1.8.9",
"serverAddress": "localhost",
"serverPort": 25565,
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],

View file

@ -6,8 +6,14 @@
"info": "Информация о сервере",
"sortIndex": 0,
"title": "Test1.9.4",
"serverAddress": "localhost",
"serverPort": 25565,
"servers": [
{
"name": "----",
"serverAddress": "localhost",
"serverPort": 25565,
"isDefault": true
}
],
"update": ["servers.dat"],
"updateExclusions": [],
"updateShared": [],