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

Use locale formatting where possible in WAILA and The One Probe #2327

Conversation

josiah-roberts
Copy link
Contributor

What

I noticed that The One Probe and WAILA tooltips and don't use locale formatting for their production and consumption the same way that JEI recipes (and most other parts of the mod) do.

Implementation Details

I took a pass throught the WAILA and The One Probe integrations and updated them to use TextFormattingUtil.formatNumbers wherever a number might conceivably become large. This should use the the default locale.

Outcome

Numbers are now locale formatted.

Additional Information

Before:
image

After:
image

Potential Compatibility Issues

Just addressing a localization issue, so shouldn't cause any compat issues.

@josiah-roberts josiah-roberts requested a review from a team as a code owner December 29, 2023 05:01
@TechLord22 TechLord22 added the type: bug Something isn't working label Dec 29, 2023
@josiah-roberts josiah-roberts force-pushed the use-locale-formatting-for-consume-produce branch from aa448c5 to 0353ee0 Compare December 29, 2023 18:27
@htmlcsjs htmlcsjs merged commit dec3f76 into GregTechCEu:master Dec 29, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants