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

Add DyeHelper api #7265

Merged

Conversation

VoidLeech
Copy link
Contributor

Issues Fixed

Fixes #6694

Implemented Solution

Use getOrDefault instead of get when accessing DyeHelper.DYE_TABLE, defaulting to white, like getWoolForDye did before.

Additionally adds an api that mods that extend the dyecolor enum can use to register the colors that should be used for the display board/nixie tube, as well as the wool; should getWoolForDye ever get used for something other than datagen.

@IThundxr IThundxr added area: compatibility Issue only happens when other mods are present pr type: fix PR fixes a bug area: api Issue or PR is related to API labels Jan 6, 2025
@IThundxr IThundxr merged commit 5078294 into Creators-of-Create:mc1.20.1/dev Jan 10, 2025
3 checks passed
@VoidLeech VoidLeech deleted the mc1.20.1/dye-safety branch January 10, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api Issue or PR is related to API area: compatibility Issue only happens when other mods are present pr type: fix PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incompatible with mods that add custom dyes
2 participants