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
df8833103e
commit
f3ba05068d
1 file changed
+1
-2
@@ -2316,8 +2316,7 @@ public class ScriptDocument {
|
||||
if (start >= end)
|
||||
return args; // No arguments
|
||||
|
||||
if(end > text.length())
|
||||
end = text.length();
|
||||
end = Math.min(end, text.length());
|
||||
|
||||
|
||||
int depth = 0;
|
||||
|
||||
Reference in new issue
Block a user