Skip to content

fix: fix entities leak on world switch, add worldSwitch event#3624

Closed
zardoy wants to merge 3 commits intoPrismarineJS:masterfrom
zardoy:up-entities-off
Closed

fix: fix entities leak on world switch, add worldSwitch event#3624
zardoy wants to merge 3 commits intoPrismarineJS:masterfrom
zardoy:up-entities-off

Conversation

@zardoy
Copy link
Copy Markdown
Contributor

@zardoy zardoy commented Mar 29, 2025

Emit removing the entity before actually removing it from the list (when clearing the object)

@rom1504
Copy link
Copy Markdown
Member

rom1504 commented Mar 29, 2025

Please add a test, see pending PR in switch world

@zardoy
Copy link
Copy Markdown
Contributor Author

zardoy commented Mar 29, 2025

see pending PR in switch world

That pr seems reliable enough for me, do you have any suggestion? Should I remove it here?

@rom1504
Copy link
Copy Markdown
Member

rom1504 commented Mar 29, 2025

Either finish the initial PR so the feature work including passing tests or do not use this feature yes
It's just about having a working implementation or not

@zardoy
Copy link
Copy Markdown
Contributor Author

zardoy commented Mar 29, 2025

It's just about having a working implementation or not

Ok, not a problem. I'll remove the event emitting then (since I'm not aware of the issues of that pr and I don't really need it)

@zardoy
Copy link
Copy Markdown
Contributor Author

zardoy commented Mar 31, 2025

I have no idea how to finish it, should I close it?

@rom1504
Copy link
Copy Markdown
Member

rom1504 commented Apr 7, 2025

Yes

@rom1504 rom1504 closed this Mar 28, 2026
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