Small patches
This commit is contained in:
parent
da7b56ad97
commit
543c38bf96
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue