
PolymerItem$modifyClientTooltip disconnect
Closed this issue ยท 1 comments
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: