Fix syntax
This commit is contained in:
parent
fc6a268792
commit
2257c37283
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class EditorState extends State<Editor> {
|
||||||
if (filePath.endsWith(".txt") || filePath.endsWith(".snbt")) {
|
if (filePath.endsWith(".txt") || filePath.endsWith(".snbt")) {
|
||||||
ct = await SnbtIo.readFromFile(filePath) as CompoundTag;
|
ct = await SnbtIo.readFromFile(filePath) as CompoundTag;
|
||||||
} else
|
} else
|
||||||
CompoundTag ct = await NbtIo.read(filePath);
|
ct = await NbtIo.read(filePath);
|
||||||
|
|
||||||
SessionData.ROOT_TAG = ct;
|
SessionData.ROOT_TAG = ct;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue