Skip to content

Fix Quasar light module having 0 radius with rgb_points#156

Open
Neddslayer wants to merge 3 commits into
FoundryMC:1.21from
Neddslayer:bugfix/quasar-light-radius
Open

Fix Quasar light module having 0 radius with rgb_points#156
Neddslayer wants to merge 3 commits into
FoundryMC:1.21from
Neddslayer:bugfix/quasar-light-radius

Conversation

@Neddslayer

Copy link
Copy Markdown
Contributor

Closes #74
As per the bug report, if the color gradient or the brightness is not constant but the radius is, it will never be initialized in the constructor and be always zero. The same thing applies to the brightness if either of the other two are not constant. This PR fixes these issues by properly applying the brightness and radius in the constructor if either are constant. I also removed setting the lastBrightness value at the end of update(), as that seemed to cause some flickering. Feel free to let me know if there are any issues!

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.

Quasar particles Light module may not work as intended!

1 participant