fix: lint
This commit is contained in:
@@ -67,7 +67,7 @@ public final class VersionSetting implements Cloneable {
|
||||
* 1. Global settings.
|
||||
* 2. Version settings.
|
||||
* If a version claims that it uses global settings, its version setting will be disabled.
|
||||
*
|
||||
* <p>
|
||||
* Defaults false because if one version uses global first, custom version file will not be generated.
|
||||
*/
|
||||
public boolean isUsesGlobal() {
|
||||
@@ -370,7 +370,7 @@ public final class VersionSetting implements Cloneable {
|
||||
|
||||
/**
|
||||
* The server ip that will be entered after Minecraft successfully loaded ly.
|
||||
*
|
||||
* <p>
|
||||
* Format: ip:port or without port.
|
||||
*/
|
||||
public String getServerIp() {
|
||||
@@ -407,7 +407,7 @@ public final class VersionSetting implements Cloneable {
|
||||
|
||||
/**
|
||||
* The width of Minecraft window, defaults 800.
|
||||
*
|
||||
* <p>
|
||||
* The field saves int value.
|
||||
* String type prevents unexpected value from JsonParseException.
|
||||
* We can only reset this field instead of recreating the whole setting file.
|
||||
@@ -429,7 +429,7 @@ public final class VersionSetting implements Cloneable {
|
||||
|
||||
/**
|
||||
* The height of Minecraft window, defaults 480.
|
||||
*
|
||||
* <p>
|
||||
* The field saves int value.
|
||||
* String type prevents unexpected value from JsonParseException.
|
||||
* We can only reset this field instead of recreating the whole setting file.
|
||||
|
||||
@@ -303,8 +303,7 @@ public class DefaultLauncher extends Launcher {
|
||||
File nativeFolder = null;
|
||||
if (options.getNativesDirType() == NativesDirectoryType.VERSION_FOLDER) {
|
||||
nativeFolder = repository.getNativeDirectory(version.getId());
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
nativeFolder = new File(options.getNativesDir());
|
||||
}
|
||||
|
||||
@@ -360,8 +359,7 @@ public class DefaultLauncher extends Launcher {
|
||||
File nativeFolder = null;
|
||||
if (options.getNativesDirType() == NativesDirectoryType.VERSION_FOLDER) {
|
||||
nativeFolder = repository.getNativeDirectory(version.getId());
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
nativeFolder = new File(options.getNativesDir());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user