Polymer

Polymer

763k Downloads

PolymerItem$modifyClientTooltip disconnect

Closed this issue ยท 1 comments

commented

I have found in 1.21.6/7, using custom tooltips, you are disconnected when joining a singleplayer world (maybe also servers with the mod and polymer on client?).

Version: 0.13.1+1.21.6

Code:

public class SpaceHelmetItem extends AutoPolymerItem {
    public SpaceHelmetItem(Settings settings) {
        super(settings);
    }

    @Override
    public void modifyClientTooltip(List<Text> tooltip, ItemStack stack, PacketContext context) {
        tooltip.add(Text.translatable("tooltip.space_helmet.flashlight.hint").formatted(Formatting.GRAY));
    }
}

Disconnect:

disconnect-2025-07-08_19.58.31-client.txt

commented

Sigh... Gradle wasn't updating polymer properly :(