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

Fix crafting job progress bar exceeding 100% #7839

Closed
wants to merge 1 commit into from

Conversation

Mithi83
Copy link
Contributor

@Mithi83 Mithi83 commented Apr 25, 2024

This fixes a progress bar rendering more than the maximum width by clamping the percentage if the crafting job makes heavy use of non-consumed items.

Note that this is merely a cosmetic fix for an overly long progress bar. The bar will still reach 100% much faster than completing the job. This is a more fundamental issue that still needs to be fixed separately.

Partial fix for #7468.


Note that I could not in fact verify that it does no longer occur, because I have no setup with mods using non-consumed items. I still think that a cosmetic fix is better than nothing.

This fixes a progress bar rendering more than the maximum width by
clamping the percentage if the crafting job makes heavy use of
non-consumed items.

Note that this is merely a cosmetic fix for an overly long progress bar.
The bar will still reach 100% much faster than completing the job. This
is a more fundamental issue that still needs to be fixed separately.

Partial fix for AppliedEnergistics#7468.
@shartte
Copy link
Member

shartte commented Apr 25, 2024

Yeah I'd rather fix the underlying problem and then apply this as a last-resort fix for the rendering

@Mithi83 Mithi83 closed this Jul 1, 2024
@Mithi83
Copy link
Contributor Author

Mithi83 commented Jul 1, 2024

Superseded by #8005. I decided to not include this visual fix in the new approach to allow future bugs to be visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants