Apply autofixes
This commit is contained in:
parent
633fc37892
commit
03fef9863f
2 changed files with 4 additions and 2 deletions
|
@ -474,9 +474,10 @@ class C2SRequestSnapshotList implements IPacket {
|
|||
|
||||
String trimmedFileName = str.trim().substring(0, str.trim().length - 3);
|
||||
strippedFiles.add(trimmedFileName);
|
||||
} else
|
||||
} else {
|
||||
strippedFiles.add(str);
|
||||
}
|
||||
}
|
||||
|
||||
snapshots.snapshotFileNames = strippedFiles;
|
||||
|
||||
|
|
|
@ -75,8 +75,9 @@ class Settings {
|
|||
steamcmd_path = tag.get("steamcmd")!.asString();
|
||||
game_path = tag.get("game")!.asString();
|
||||
base_path = tag.get("base")!.asString();
|
||||
if (tag.containsKey("dbfile"))
|
||||
if (tag.containsKey("dbfile")) {
|
||||
gameServerDBFile = tag.get("dbfile")!.asString();
|
||||
}
|
||||
|
||||
FTS = NbtUtils.readBoolean(tag, "fts"); // First Time Setup.
|
||||
// FTS should be disabled by the client when sending it back to the server in a C2SApplySettingsPacket
|
||||
|
|
Loading…
Reference in a new issue