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

Slimefun Rainbow armor is able to recolor normal and even custom leather armor #3931

Open
4 tasks done
TheLaoming opened this issue Jul 30, 2023 · 1 comment · May be fixed by #3936
Open
4 tasks done

Slimefun Rainbow armor is able to recolor normal and even custom leather armor #3931

TheLaoming opened this issue Jul 30, 2023 · 1 comment · May be fixed by #3936
Labels
🐞 Bug Report A bug that needs to be fixed. 🧨 Confirmed Bug This bug has been confirmed by our team.

Comments

@TheLaoming
Copy link

❗ Checklist

  • I am using the official english version of Slimefun and did not modify the jar.
  • I am using an up to date "DEV" (not "RC") version of Slimefun.
  • I am aware that issues related to Slimefun addons need to be reported on their bug trackers and not here.
  • I searched for similar open issues and could not find an existing bug report on this.

📍 Description

Hey, so very quickly and briefly, this bug is about rainbow armor. Once when you put on the armor and quickly wear on a different leather armor (even custom one), it's recolored then too. This mess up with other armors and especially custom armors, cuz these needs specific colors to work.

📑 Reproduction Steps

  1. Put on rainbow chestplate or any other part
  2. Take it off
  3. Quickly put on basic leather armor, it's recolored.

💡 Expected Behavior

Do not recolor other armors.

📷 Screenshots / Videos

sf.issue.mp4

📜 Server Log

No response

📂 /error-reports/ folder

No response

💻 Server Software

Paper

🎮 Minecraft Version

1.19.x

⭐ Slimefun version

Slimefun version DEV - 1087 (git dc22e66)

🧭 Other plugins

No response

@TheLaoming TheLaoming added 🎯 Needs testing This Issue needs to be tested by our team to see if it can be reproduced. 🐞 Bug Report A bug that needs to be fixed. labels Jul 30, 2023
@TheLaoming TheLaoming changed the title Slimefun Rainbow armor is able to recolor normal and even custom leather armors. Slimefun Rainbow armor is able to recolor normal and even custom leather armor Jul 30, 2023
@iTwins
Copy link
Contributor

iTwins commented Aug 3, 2023

Can confirm this. This is caused by a difference in the armor-update-interval and rainbow-armor-update-interval config options. The default values are 10 and 3 respectively. When the rainbow armor task runs it checks the armor that's cached by the armor update task, but since the armor update task is slower, the rainbow task will almost always run once or twice before the armor update task runs. The only conditions in the rainbow task are: the cached armor piece is rainbow armor, the player can use the cached armor piece, the current armor piece is leather and the current armor piece has item meta (e.g. custom name, lore or color). If those 4 conditions are fulfilled it just changes the color.

iTwins added a commit to iTwins/Slimefun4 that referenced this issue Aug 5, 2023
@iTwins iTwins linked a pull request Aug 5, 2023 that will close this issue
7 tasks
@variananora variananora added 🧨 Confirmed Bug This bug has been confirmed by our team. and removed 🎯 Needs testing This Issue needs to be tested by our team to see if it can be reproduced. labels Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Report A bug that needs to be fixed. 🧨 Confirmed Bug This bug has been confirmed by our team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants