mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 20:07:32 +00:00
Fixed IndexOutOfBounds
This commit is contained in:
1 parent
b613ec86fe
commit
df8833103e
1 file changed
+5
-2
@@ -2313,9 +2313,12 @@ public class ScriptDocument {
|
||||
public List<MethodCallInfo.Argument> parseMethodArguments(int start, int end, MethodInfo methodInfo) {
|
||||
List<MethodCallInfo.Argument> args = new ArrayList<>();
|
||||
|
||||
if (start >= end) {
|
||||
if (start >= end)
|
||||
return args; // No arguments
|
||||
}
|
||||
|
||||
if(end > text.length())
|
||||
end = text.length();
|
||||
|
||||
|
||||
int depth = 0;
|
||||
int argStart = start;
|
||||
|
||||
Reference in new issue
Block a user