Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reversible craft tree nodes #562

Merged
merged 2 commits into from
Nov 10, 2024

Conversation

tinyhoot
Copy link
Contributor

Changes made in this pull request

  • Duplicated code in CraftTreeHandler is consolidated.
  • An instruction sent to the CraftTreeHandler that directly contradicts a previous change removes the original change from the cached changelist, rather than stacking the two.
    • In this way, it becomes possible to undo changes to a CraftTree, which is essential for any mod making changes on a per-save basis.
    • Since this approach utilises the existing API, there are no breaking changes.

Breaking changes

  • None

@Metious Metious merged commit dd547c7 into SubnauticaModding:master Nov 10, 2024
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants