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

Carryable Object Destruction Results in Error #108

Closed
ac-arcana opened this issue Mar 12, 2024 · 3 comments
Closed

Carryable Object Destruction Results in Error #108

ac-arcana opened this issue Mar 12, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@ac-arcana
Copy link
Collaborator

If you are carrying a carryable and it is destroyed while you are carrying it, then when you next press the carry input there is an error.

@Phazorknight Phazorknight self-assigned this Mar 12, 2024
@Phazorknight Phazorknight added the bug Something isn't working label Mar 12, 2024
@Phazorknight
Copy link
Owner

Thanks for flagging this.
Have a pretty good idea on what causes this and how to fix it, so should be able to get this done today.

@Phazorknight
Copy link
Owner

Please check 003d035.

This adds a check to the Player Interaction component to see if the carryable object reference is still valid, and if not clears it.
You should no longer get crashes, but it's possible that you have to press an interact button first before the reference is updated. Will see if I can somehow make it cleaner, but if it works for you, I'd consider this resolved.

@ac-arcana
Copy link
Collaborator Author

Solved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants