Skip to content

Conversation

@toapuro
Copy link
Contributor

@toapuro toapuro commented Jan 11, 2026

What

Refactors display voltage logic to improve extensibility for external implementations (e.g., GregTech addons).

Outcome

Replaces the hardcoded voltage logic in
RecipeLogicProvider#getVoltage with a call to
IRecipeLogicMachine#getDisplayRecipeVoltage.

Potential Compatibility Issues

This change is intended to be backward-compatible.
Please report any issues if found.

@toapuro toapuro requested a review from a team as a code owner January 11, 2026 03:57
@TarLaboratories TarLaboratories added type: refactor Suggestion to refactor a section of code Release: Major - 0.X.0 Releases focused on Content, changes to gameplay; While maintaining mostly API stability. labels Jan 11, 2026
Copy link
Contributor

@TarLaboratories TarLaboratories left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@toapuro
Copy link
Contributor Author

toapuro commented Jan 14, 2026

Conflicts with #4462

… into waila-voltage-display

# Conflicts:
#	src/main/java/com/gregtechceu/gtceu/integration/jade/provider/RecipeLogicProvider.java
@toapuro
Copy link
Contributor Author

toapuro commented Jan 14, 2026

I’ve committed a change to resolve the conflict.
If this is not needed, I will revert it.

@TarLaboratories TarLaboratories merged commit 7ac9e80 into GregTechCEu:1.20.1 Jan 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Major - 0.X.0 Releases focused on Content, changes to gameplay; While maintaining mostly API stability. type: refactor Suggestion to refactor a section of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants