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

Fix Handy script not playing after revisiting scene #5578

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dumdum7
Copy link
Contributor

@dumdum7 dumdum7 commented Dec 27, 2024

Resolves #5577

The problem seems to be that the hook for player initialization is executed after the hook for script uploading. interactiveReady is first set to true by the script uploading hook (correct), but then gets reset to false by the player initialization hook (incorrect).

I think it's safe to delete the line I deleted since it should get set to false by the script uploading hook anyway, but I'm rather new to React, so please correct me if I'm wrong. There might even be a better way of solving this, like somehow ensuring the script uploading hook gets executed after the player initialization hook.

I tested the change locally. It fixed the problem and everything else seemed fine.

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.

[Bug Report] Handy script not playing after revisiting scene
1 participant