From 03fef9863f04cd51a023f59831113931c670209b Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 2 Jul 2024 00:54:24 -0700 Subject: [PATCH] Apply autofixes --- lib/packets/ClientPackets.dart | 3 ++- lib/structs/settings.dart | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/packets/ClientPackets.dart b/lib/packets/ClientPackets.dart index 4b87eec..b31a71e 100644 --- a/lib/packets/ClientPackets.dart +++ b/lib/packets/ClientPackets.dart @@ -474,8 +474,9 @@ 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; diff --git a/lib/structs/settings.dart b/lib/structs/settings.dart index f77d7f0..df249a4 100644 --- a/lib/structs/settings.dart +++ b/lib/structs/settings.dart @@ -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