-
Notifications
You must be signed in to change notification settings - Fork 3k
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
base: master
Are you sure you want to change the base?
@printbuffer #10499
Conversation
@@ -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; |
There was a problem hiding this comment.
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){ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
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: