diff --git a/src/main/java/com/mcf/davidee/nbtedit/nbt/NBTTree.java b/src/main/java/com/mcf/davidee/nbtedit/nbt/NBTTree.java index 50e6c62..20ea680 100644 --- a/src/main/java/com/mcf/davidee/nbtedit/nbt/NBTTree.java +++ b/src/main/java/com/mcf/davidee/nbtedit/nbt/NBTTree.java @@ -53,7 +53,8 @@ private boolean deleteNode(Node toDelete, Node cur){ private void construct() { - root = new Node<>(new NamedNBT("ROOT", (NBTTagCompound)baseTag.copy())); + root = new Node<>(new NamedNBT("ROOT", baseTag.copy())); + root.setDrawChildren(true); addChildrenToTree(root); sort(root); }