Fixed IndexOutOfBounds

This commit is contained in:
bigguy345 committed 2026-01-03 02:05:43 +02:00
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;