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: EntityPrototypeView now only creates entity when in opened ui (after EnteredTree and not after ExitedTree) #5491

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Fildrance
Copy link
Contributor

Fix for EntityPrototypeView creating entities on setting ProtoId. This was the problem that caused space-wizards/space-station-14#32339 to fail tests - "crafting recepie ui" is connected to controller that is updating on server init with fresh list of recepies. And this update initializes UI even without opening it - which leads to creation of entities without actually deleting them (not in master, but in this menu translation PR).
Fixed following this discussion.

…fter EnteredTree and not after ExitedTree)
@Fildrance
Copy link
Contributor Author

Tested new version of code with lathe. But I don't know where to test call to SetPrototype when window is already opened - thats some kind of update on-the-run...

@Fildrance Fildrance marked this pull request as ready for review October 13, 2024 10:15
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.

1 participant