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

Update function references when the function definition is reloaded #3795

Closed

Conversation

TPGamesNL
Copy link
Member

Description

This change sets function to null when the FunctionReference is validated (this happens when the function definition is (re)loaded). Since FunctionReference#execute sets function to the appropriate Function, this change will cause the FunctionReference to reference the new Function when the functions definition is reloaded.


Target Minecraft Versions: any
Requirements: none
Related Issues: #3660

@TPGamesNL TPGamesNL added 2.5 bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. labels Mar 8, 2021
@TPGamesNL TPGamesNL marked this pull request as draft March 22, 2021 16:14
@TPGamesNL
Copy link
Member Author

Closing in favour of #3841

@TPGamesNL TPGamesNL closed this Mar 22, 2021
@TPGamesNL TPGamesNL deleted the fix/function-old-reference branch March 22, 2021 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant