Configuration

Configuration

2M Downloads

Using a really long array gets cut off in the GUI.

CobaltTheProtogen opened this issue ยท 3 comments

commented

I really don't know how to explain this, but in my mod, there is a really long array with multiple settings in the array and a good part of them gets cut off by the GUI.

Like, this is the default array for an iron golem's settings:

"minecraft:iron_golem=true,true,0,0,0.0,0.0,false,2"

Half of it gets cut off. Can you increase the limit to how many characters show up per string please?

commented

If I understand this issue correctly then the best solution for you might be the CharacterLimit annotation, which allows you to configure the limits for text boxes in GUI.
Another possible solution would be to create new configurable object with these attributes as fields instead of parsing string, but that depends on your use case.

commented

Thank you Toma. Also, I can do that? Like I can create a object for each entity override? Like how would I do that? Players are supposed to be able to do overrides for ANY entity, modded or vanilla.

commented

Oh, if it is supposed to be for all entities, even modded then that is currently not supported. I'd have to implement support for dynamic config values