YarnSpinnerTool / YarnSpinner

Yarn Spinner is a tool for building interactive dialogue in games!
https://yarnspinner.dev
MIT License
2.3k stars 201 forks source link

Empty nodes are included in the compiled output #381

Closed McJones closed 7 months ago

McJones commented 8 months ago

Currently if you have an empty node, such as:

title:Hello
---
===

This node will be included into the compiled output and do unusual things when run.

I think two things should happen, first is that when you attempt to compile the project that includes this node it will give a warning something along the lines of Node "Hello" in "filename.yarn" is empty and will not be included in the compiled output. And secondly the node will not be included into any output of the compiler. Attempting to jump to this node will present an error no different than if you jumped to a misspelled node.