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

Reenforce uniqueness of attached light sources as in ye olden days #4377

Merged

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Nov 5, 2023

Identify the Bug or Feature request

Fixes #4376

Description of the Change

A casualty of the protobuf changes in 1.12 was the removal of uniqueness checks in Token.lightSourceList. This PR adds back the necessary checks to make sure we don't get duplicate lights and auras on a token.

Possible Drawbacks

Likely none, unless someone discovered and depended specifically on have multiple auras via setLight().

Documentation Notes

N/A

Release Notes

  • Fixed lights and auras so more than one of each cannot be added to tokens.

This change is Reviewable

Has to add back `AttachedLightSource.getId()` to make this work well, but added cautions against certains temptations
with it.
@cwisniew cwisniew added this pull request to the merge queue Nov 8, 2023
@cwisniew cwisniew added the bug label Nov 8, 2023
Merged via the queue into RPTools:develop with commit 85f2f34 Nov 8, 2023
4 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/4376-additive-lights branch November 8, 2023 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: setLight seems additive
2 participants