mirror of
https://github.com/Phoenix616/RandomTeleport.git
synced 2024-11-25 20:15:55 +01:00
Fix parsing of the value of the last parameter
This commit is contained in:
parent
e0f1ed950b
commit
4e845408e3
@ -72,7 +72,7 @@ public class SimpleOptionParser implements OptionParser {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i + argLength < args.length) {
|
if (i + argLength <= args.length) {
|
||||||
return parser.apply(searcher, Arrays.copyOfRange(args, i, i + argLength));
|
return parser.apply(searcher, Arrays.copyOfRange(args, i, i + argLength));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user