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

Add automatic leave() for deleted carried objects #118

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

FailSpy
Copy link
Contributor

@FailSpy FailSpy commented Mar 13, 2024

Addresses #108

You mentioned you need the reference to be cleaned up in the current implementation, thought I'd throw this patch in that makes it so a Carryable object will call 'leave()' as part of its cleanup on destruction.

Copy link
Owner

@Phazorknight Phazorknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're on fire today. 🔥

Also damn, i didn't know about _enter_tree and _exit_tree, those give me all kinds of ideas on how to make the overall code better. 🤔

@Phazorknight Phazorknight merged commit ae169c6 into Phazorknight:main Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants