-
Notifications
You must be signed in to change notification settings - Fork 549
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 rainbow armor recoloring other leather armor #3936
base: master
Are you sure you want to change the base?
Conversation
Your Pull Request was automatically labelled as: "✨ Fix" |
Slimefun preview buildA Slimefun preview build is available for testing! https://preview-builds.walshy.dev/download/Slimefun/3936/1c35e7ab
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be a big performance downgrade.
I reckon a much better approach would be to modify the updateRainbowArmor
method as to not update non-rainbow armor.
Even though I changed this last week, I wanted to mention that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm i think? testing would be good though lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
Due to a desync in
SlimefunArmorTask
andRainbowArmorTask
other leather armor could be recolored.Proposed changes
Compare against the item the player is currently wearing instead of the cached item.
Related Issues (if applicable)
Resolves #3931
Checklist
Nonnull
andNullable
annotations to my methods to indicate their behaviour for null values