ZenUtils icon indicating copy to clipboard operation
ZenUtils copied to clipboard

`StringList.create` conflict with RequiousFracto

Open Krutoy242 opened this issue 1 year ago • 4 comments

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

Krutoy242 avatar Dec 01 '24 11:12 Krutoy242

:concern: If you are using it in tab completion, you can use IGetTabCompletion.fixedValues About other use cases... I should make some hacky.

friendlyhj avatar Dec 01 '24 11:12 friendlyhj

Yes, im using it here. I will try to use fixedValues.

Krutoy242 avatar Dec 01 '24 12:12 Krutoy242

btw, you reinvented another wheel https://github.com/friendlyhj/ZenUtils/wiki/ZenCommandTree

friendlyhj avatar Dec 01 '24 12:12 friendlyhj

Yes, i probably just forgot it exist...

Krutoy242 avatar Dec 01 '24 12:12 Krutoy242