Add in more implementation
This commit is contained in:
parent
fc0c1c7e7a
commit
1b2ec0e74d
14 changed files with 62 additions and 35 deletions
|
@ -1,5 +1,5 @@
|
|||
import 'package:libac_flutter/nbt/impl/CompoundTag.dart';
|
||||
import 'package:libac_flutter/nbt/impl/IntTag.dart';
|
||||
import 'package:libac_flutter/nbt/impl/LongTag.dart';
|
||||
import 'package:libac_flutter/nbt/impl/StringTag.dart';
|
||||
import 'package:libac_flutter/utils/uuid/UUID.dart';
|
||||
|
||||
|
@ -29,7 +29,7 @@ class Mod {
|
|||
CompoundTag serialize() {
|
||||
CompoundTag tag = CompoundTag();
|
||||
tag.put("name", StringTag.valueOf(mod_name));
|
||||
tag.put("id", IntTag.valueOf(mod_id));
|
||||
tag.put("id", LongTag.valueOf(mod_id));
|
||||
tag.put("pak", StringTag.valueOf(mod_pak));
|
||||
tag.put("hash", StringTag.valueOf(mod_hash));
|
||||
|
||||
|
@ -41,7 +41,7 @@ class Mod {
|
|||
|
||||
return Mod(
|
||||
mod_name: ct.get("name")!.asString(),
|
||||
mod_id: ct.get("id")!.asInt(),
|
||||
mod_id: ct.get("id")!.asLong(),
|
||||
mod_pak: ct.get("pak")!.asString(),
|
||||
mod_hash: ct.get("hash")!.asString());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue