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

weaken recipe logic type in WorkableTieredMetaTileEntity #2342

Merged
merged 1 commit into from Jan 16, 2024

Conversation

TechLord22
Copy link
Member

What

Weakens the recipe logic field from RecipeLogicEnergy to AbstractRecipeLogic in WorkableTieredMetaTileEntity. This allows utilizing more broad recipe logic types, such as PrimitiveRecipeLogic, when extending the class.

Outcome

Allows more recipe logic classes to be used in WorkableTieredMetaTileEntity.

Potential Compatibility Issues

None should occur unless a subclass specifically requires RecipeLogicEnergy at minimum for the field, in which case the project would need an update to check with instanceof.

@TechLord22 TechLord22 requested a review from a team as a code owner January 10, 2024 14:17
@TechLord22 TechLord22 added the type: feature New feature or request label Jan 10, 2024
@serenibyss serenibyss added type: refactor Suggestion to refactor a section of code and removed type: feature New feature or request labels Jan 16, 2024
@serenibyss serenibyss merged commit add8fc1 into master Jan 16, 2024
4 of 5 checks passed
@serenibyss serenibyss deleted the tc-weaken-rl-type branch January 16, 2024 22:15
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.

None yet

2 participants