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

@ -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();