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

Implement workaround for fuel tooltip log spam bug #25

Merged
merged 3 commits into from
Jun 2, 2021

Conversation

Exaxxion
Copy link

@Exaxxion Exaxxion commented Jun 2, 2021

Addresses the log spam bug #23 with a workaround that updates BlockCustomCake.cakeDimension in the TOP/WAILA rendering methods (similar to what we do in onBlockActivated()) so it has a value set before the superclass implementation of those methods try to access it.

In the longer term, a proper refactoring of custom cakes to avoid the state-swapping stuff is still desirable, so I don't want to link #23 and close it just yet.

See #23; a proper fix needs to rework how we represent custom cakes.
@Exaxxion Exaxxion added the bug Something isn't working label Jun 2, 2021
Dimension validation only matters during teleport, no need for it here.
Ensures that overlays will still show up for the cake.
Copy link
Member

@ALongStringOfNumbers ALongStringOfNumbers left a comment

Choose a reason for hiding this comment

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

I will confirm that this fixes the log spam issue from the linked issue. Further refactoring of the custom cakes should be in a separate PR.

@Exaxxion Exaxxion merged commit 162e385 into master Jun 2, 2021
@Exaxxion Exaxxion deleted the fuel-logspam-workaround branch June 2, 2021 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants