This commit is contained in:
Anuken
2019-10-20 10:06:13 -04:00
parent 00054e2c61
commit 4be22822d4
2 changed files with 5 additions and 1 deletions

View File

@@ -290,6 +290,7 @@ public class ContentParser{
Vars.mods.handleError(new ModLoadException("Error occurred parsing content: " + currentContent, currentContent, e), currentMod); Vars.mods.handleError(new ModLoadException("Error occurred parsing content: " + currentContent, currentContent, e), currentMod);
} }
reads.clear(); reads.clear();
postreads.clear();
} }
/** /**

View File

@@ -42,6 +42,10 @@ public class TechTreeDialog extends FloatingDialog{
margin(0f).marginBottom(8); margin(0f).marginBottom(8);
cont.stack(view = new View(), items = new ItemsDisplay()).grow(); cont.stack(view = new View(), items = new ItemsDisplay()).grow();
Events.on(ContentReloadEvent.class, e -> {
root = new TechTreeNode(TechTree.root, null);
});
shown(() -> { shown(() -> {
checkNodes(root); checkNodes(root);
treeLayout(); treeLayout();
@@ -117,7 +121,6 @@ public class TechTreeDialog extends FloatingDialog{
} }
bounds = new Rectangle(minx, miny, maxx - minx, maxy - miny); bounds = new Rectangle(minx, miny, maxx - minx, maxy - miny);
bounds.y += nodeSize*1.5f; bounds.y += nodeSize*1.5f;
Log.info(bounds);
} }
void copyInfo(LayoutNode node){ void copyInfo(LayoutNode node){