mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fix Jump if target is in line 1
This commit is contained in:
@@ -304,7 +304,7 @@ namespace RuriLib.LS
|
||||
try
|
||||
{
|
||||
label = LineParser.ParseToken(ref cfLine, TokenType.Label, true);
|
||||
i = ScanFor(lines, 0, true, new string[] { $"{label}" }) - 1;
|
||||
i = ScanFor(lines, -1, true, new string[] { $"{label}" }) - 1;
|
||||
data.LogBuffer.Add(new LogEntry($"Jumping to line {i + 1}", Colors.White));
|
||||
}
|
||||
catch { throw new Exception($"No block with label {label} was found"); }
|
||||
|
||||
Reference in New Issue
Block a user