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

Un- and register again after renaming #1

Open
mflink3012 opened this issue Apr 9, 2021 · 1 comment
Open

Un- and register again after renaming #1

mflink3012 opened this issue Apr 9, 2021 · 1 comment
Labels
bug Something isn't working workaround

Comments

@mflink3012
Copy link
Owner

mflink3012 commented Apr 9, 2021

Currently the mod will register the teleporting sensors in the TeleporterNetwork, but will not unregister it after changing teleporter.name.

Because the TeleporterNetwork will still hold the object with it's old name, this may lead to problems with

  • exchanging names between teleporters (name already in use)
  • memory leaks (memory consumption will increase)

So the TeleportingSensor should detect changes in names, unregister itself with the old name and register itself with the new name.

@mflink3012 mflink3012 self-assigned this Apr 9, 2021
@mflink3012 mflink3012 added the bug Something isn't working label Apr 9, 2021
@mflink3012 mflink3012 removed their assignment Apr 9, 2021
@mflink3012
Copy link
Owner Author

Workaround:
Reload the map.

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

No branches or pull requests

1 participant