mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 07:34:29 +00:00
Removed whitespaces from AssingmentInfo's statementStart
This commit is contained in:
1 parent
17e0782a32
commit
794ff0c9b0
1 file changed
+5
@@ -2924,6 +2924,11 @@ public class ScriptDocument {
|
||||
}
|
||||
if (stmtStart < 0) stmtStart = 0;
|
||||
|
||||
// Skip leading whitespace to get to the actual first character of the statement
|
||||
while (stmtStart < equalsPos && Character.isWhitespace(text.charAt(stmtStart))) {
|
||||
stmtStart++;
|
||||
}
|
||||
|
||||
// Find the end of this statement (next ;)
|
||||
int stmtEnd = text.indexOf(';', equalsPos);
|
||||
if (stmtEnd < 0) stmtEnd = text.length();
|
||||
|
||||
Reference in new issue
Block a user