Skip to content

TOP/WAILA(Hwyla) tooltips "latching" on Custom Cake fuels when multiple Custom Cakes are defined #23

@Exaxxion

Description

@Exaxxion

The new cake fuel display tooltips in TOP/WAILA(Hwyla) are working fine for the vanilla dimension cakes, but the one for custom cakes has some strange behavior. This is reproducible in the runClient build target so it's not an external interaction.

Specifically, it is "latching" to whatever the last clicked Custom Cake's fuel type is. This isn't a problem if you only have a single custom cake defined, but with multiple cakes it will report the wrong information.

To reproduce this, define some custom cakes such that one of them uses minecraft:stick as fuel and the other uses minecraft:cobblestone. As we don't have additional dimensions in the dev environment, I have used dimID 0 and 1 for custom cakes "Zero" and "One", respectively. Next, start up the runClient build target.

In a fresh superflat, cheat in one of each cake with 0 bites remaining to test with (so clicking them won't teleport you anywhere), and place them in front of you.

In the following screenshots, I have the "Zero" cake configured to use minecraft:cobblestone and the "One" cake configured to use minecraft:stick.

Upon loading in, looking at the placed "One" cake shows the incorrect fuel in the overlay.
image

Right clicking it results in the overlay updating to the correct fuel ("Refill: Stick").
image

However, when you pan over to look at the "Zero" cake, it then shows that cake's fuel as Sticks as well, when it should be Cobblestone. Similarly, right-clicking to use the "Zero" cake updates the TOP/WAILA(Hwyla) overlays for both cakes to display the fuel as "Refill: Cobblestone".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions