TeamMidnightDust / MidnightLib

Common Library for Team MidnightDust's mods. Provides a config api, common utils, and cosmetics.
https://midnightdust.eu/midnightlib
MIT License
31 stars 15 forks source link

Suggestion: Support for arrays and non-String lists #45

Open KonSola5 opened 7 months ago

KonSola5 commented 7 months ago

Currently, they sorta work (they show up in config): config ... but they don't show up in-game. game

Lists of other types than String sorta work both in-game and in config:

@Entry(category = "generating") public static List<Double> gourmaryllisList = new ArrayList<>(Arrays.asList(0.0, 1.0, 1.3, 1.5, 1.6, 1.7, 1.75, 1.8));

config ... but after changing a value, the value gets wrapped with quotation marks. config

If the non-String types would be supported, it would save on parsing strings into doubles (or other arbitrary type) on the modder's end.