@@ 0,0 1,21 @@
+use fmt;
+use format::nbt;
+use os;
+use io;
+use compress::gzip;
+
+export fn main() void = {
+ let f = os::open("cmd/decompress/level.dat")!;
+ defer io::close(f)!;
+
+ let d = gzip::decompress(f)!;
+ let reader = &d.1;
+ defer io::close(reader)!;
+
+ let tag = nbt::load(reader)!;
+ defer nbt::finish(tag);
+
+ let data = nbt::get(&(tag.payload as nbt::compound), "Data") as *nbt::tag;
+ let seed = nbt::get(&(data.payload as nbt::compound), "RandomSeed") as *nbt::tag;
+ fmt::println(seed.payload as i64)!;
+};