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

@printbuffer #10499

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

@printbuffer #10499

wants to merge 4 commits into from

Conversation

1ue999
Copy link
Contributor

@1ue999 1ue999 commented Feb 12, 2025

This adds a reference to the print buffer to processors (@printbuffer), and also changes some behaviours to allow stringbuilders to be used in logic.

If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:

  • I have read the contribution guidelines.
  • I have ensured that my code compiles, if applicable.
  • I have ensured that any new features in this PR function correctly in-game, if applicable.

@@ -62,7 +62,7 @@ public class LExecutor{
//yes, this is a minor memory leak, but it's probably not significant enough to matter
protected static IntFloatMap unitTimeouts = new IntFloatMap();
//lookup variable by name, lazy init.
protected @Nullable ObjectIntMap<String> nameMap;
protected @Nullable ObjectIntMap<CharSequence> nameMap;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HashMap should use immutable class(String) as key.

}

//region utility


public @Nullable LVar optionalVar(String name){
public @Nullable LVar optionalVar(CharSequence name){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test this? Query with StringBuilder but String in Map.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna test it in a few hours

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i found a solution but cant fix it yet (nother 2 hours or so)

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

Successfully merging this pull request may close these issues.

3 participants