Small patches

This commit is contained in:
zontreck 2025-03-02 19:38:31 -07:00
parent da7b56ad97
commit 543c38bf96
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ Future<int> main(List<String> args) async {
print("Server data absolute path: ${Settings.ABSOLUTE_PATH}");
Directory data = Directory("data");
if (!data.existsSync()) data..createSync();
if (!data.existsSync()) data.createSync();
Directory.current = data;

View file

@ -59,8 +59,9 @@ class Mod {
if (ct.containsKey("hash")) hash = ct.get("hash")!.asString();
bool enabled = true;
if (ct.containsKey("enabled"))
if (ct.containsKey("enabled")) {
enabled = NbtUtils.readBoolean(tag, "enabled");
}
String comment = "";
if (ct.containsKey("comment")) comment = ct.get("comment")!.asString();