Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StringList.create conflict with RequiousFracto #81

Open
Krutoy242 opened this issue Dec 1, 2024 · 4 comments
Open

StringList.create conflict with RequiousFracto #81

Krutoy242 opened this issue Dec 1, 2024 · 4 comments

Comments

@Krutoy242
Copy link

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
@friendlyhj
Copy link
Owner

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

@Krutoy242
Copy link
Author

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

@friendlyhj
Copy link
Owner

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

@Krutoy242
Copy link
Author

Yes, i probably just forgot it exist...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants