Fix attachment nodes becoming unusable in editor after undo #1572
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix #1571
The attach nodes of Wolf Cargo Containers are defined like this:
However after attaching parts to each of the side nodes, they get saved in the .craft file as:
This indicates that all 4 attached parts are attached to the same attach node "node_stack_side"
Also in the save game, the Wolf Cargo Container looks like this:
This indicates four times, that the attach node "node_stack_side" has no part "-1" attached to it but says nothing about the other three attach nodes.
My conclusion is, that the node_stack definitions are parsed in a strange way when more than two underscores "_" appear in the definition.
This PR changes the definitions by removing the third underscore.
I can't tell for sure, if this change makes problems for existing savegames, so I would appreciate it, if someone with more experience could verify, if this is a breaking change.