Skip to content

Comments

Fix behavior of OreProperty#setOreByProducts#1857

Merged
TechLord22 merged 1 commit intomasterfrom
tc-ore-byproducts
Jun 19, 2023
Merged

Fix behavior of OreProperty#setOreByProducts#1857
TechLord22 merged 1 commit intomasterfrom
tc-ore-byproducts

Conversation

@TechLord22
Copy link
Member

What

Fixes OreProperty#setOreByProducts adding instead of setting. This resulted in unexpected behavior with addons attempting to modify the byproducts of a material. A new method to mimic the old behavior of addition was added as well, #addOreByProducts.

Outcome

Fixes behavior of OreProperty#setOreByProducts.

Potential Compatibility Issues

Mods will likely not have relied on the old behavior, but if they did, they will need to move to the add method. No compile-time incompatibilities are expected otherwise.

@TechLord22 TechLord22 added the type: bug Something isn't working label Jun 18, 2023
@TechLord22 TechLord22 requested a review from a team as a code owner June 18, 2023 02:13
@ALongStringOfNumbers ALongStringOfNumbers added type: refactor Suggestion to refactor a section of code and removed type: bug Something isn't working labels Jun 19, 2023
@TechLord22 TechLord22 merged commit 5ac4dd5 into master Jun 19, 2023
@TechLord22 TechLord22 deleted the tc-ore-byproducts branch June 19, 2023 05:02
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.

2 participants