Apply autofixes

This commit is contained in:
zontreck 2024-07-02 00:54:24 -07:00
parent 633fc37892
commit 03fef9863f
2 changed files with 4 additions and 2 deletions

View file

@ -474,8 +474,9 @@ class C2SRequestSnapshotList implements IPacket {
String trimmedFileName = str.trim().substring(0, str.trim().length - 3); String trimmedFileName = str.trim().substring(0, str.trim().length - 3);
strippedFiles.add(trimmedFileName); strippedFiles.add(trimmedFileName);
} else } else {
strippedFiles.add(str); strippedFiles.add(str);
}
} }
snapshots.snapshotFileNames = strippedFiles; snapshots.snapshotFileNames = strippedFiles;

View file

@ -75,8 +75,9 @@ class Settings {
steamcmd_path = tag.get("steamcmd")!.asString(); steamcmd_path = tag.get("steamcmd")!.asString();
game_path = tag.get("game")!.asString(); game_path = tag.get("game")!.asString();
base_path = tag.get("base")!.asString(); base_path = tag.get("base")!.asString();
if (tag.containsKey("dbfile")) if (tag.containsKey("dbfile")) {
gameServerDBFile = tag.get("dbfile")!.asString(); gameServerDBFile = tag.get("dbfile")!.asString();
}
FTS = NbtUtils.readBoolean(tag, "fts"); // First Time Setup. 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 // FTS should be disabled by the client when sending it back to the server in a C2SApplySettingsPacket