ZenUtils
ZenUtils copied to clipboard
`StringList.create` conflict with RequiousFracto
With mod RequiousFracto installed, StringList.create returns different values based on variable declaration method.
test.zs:
#reloadable
import mods.zenutils.StringList;
print('~'~StringList.create(['one', 'two', 'three']).get(1));
val list = ['one', 'two', 'three'] as string[];
print('~'~StringList.create(list).get(1));
crafttweaker.log:
[SERVER_STARTED][SERVER][INFO] ~two
[SERVER_STARTED][SERVER][INFO] ~requious.util.Parameter$Constant@17342467
:concern:
If you are using it in tab completion, you can use IGetTabCompletion.fixedValues
About other use cases... I should make some hacky.
Yes, im using it here. I will try to use fixedValues.
btw, you reinvented another wheel https://github.com/friendlyhj/ZenUtils/wiki/ZenCommandTree
Yes, i probably just forgot it exist...