AutoConfig icon indicating copy to clipboard operation
AutoConfig copied to clipboard

Floats or doubles in list-type config fields blank out in the screen when they would be formatted in scientific notation

Open bluebear94 opened this issue 5 years ago • 0 comments

I'm not sure whether this is an issue with AutoConfig or Cloth Config, but if a field that would display using FloatListListEntry or DoubleListListEntry contains a number that would be formatted using scientific notation, then the config screen will have the field for that number blanked out.

To reproduce: Add a field to a config class:

public List<Double> dummy = Collections.singletonList(1e-5);

Then open the config screen for the mod.

Expected behavior: The list widget for dummy shows a single entry showing 1E-5.

Actual: The entry under dummy is blank.

bluebear94 avatar Aug 13 '20 07:08 bluebear94