Skip to content

Conversation

@TechLord22
Copy link
Member

What

Moves Recycling code out of OreDictUnifier, and improves some of the related code.

OreDictUnifier.getMaterial() is only ever used with the intention that the ItemStack passed in is a "material item," meaning it is the item form of some material. There is no obvious expectation that it should ever return a material for non-material items that have recycling data, so I changed its behavior to be more intuitive and align with the common expectations. I did not notice any obvious change to any of our recycling recipes, and I do not expect any issues in the other places it's used.

Outcome

Less confusion with OreDictUnifier.registerOre() sometimes being used for recycling and other times being for Ore Dictionary entries.

@TechLord22 TechLord22 requested a review from a team as a code owner May 19, 2025 18:44
@TechLord22 TechLord22 added the type: refactor Suggestion to refactor a section of code label May 19, 2025
@TechLord22 TechLord22 merged commit b742f3f into master May 19, 2025
3 of 4 checks passed
@TechLord22 TechLord22 deleted the tc/recycling-separation branch May 19, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: refactor Suggestion to refactor a section of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants