diff --git a/lib/Editor.dart b/lib/Editor.dart index bffa2a2..0b5452f 100644 --- a/lib/Editor.dart +++ b/lib/Editor.dart @@ -135,7 +135,7 @@ class EditorState extends State { if (filePath.endsWith(".txt") || filePath.endsWith(".snbt")) { ct = await SnbtIo.readFromFile(filePath) as CompoundTag; } else - CompoundTag ct = await NbtIo.read(filePath); + ct = await NbtIo.read(filePath); SessionData.ROOT_TAG = ct; }