mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-16 18:31:53 +01:00
parent
f9c3d93f76
commit
282e51eda2
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ // calculate argument position
|
||||
+ if (argIdx != null) {
|
||||
+ try {
|
||||
+ final int idx = Integer.parseInt(argIdx);
|
||||
+ final int idx = Integer.parseInt(argIdx) - 1;
|
||||
+ if (idx < args.size()) {
|
||||
+ consumer.accept(args.get(idx));
|
||||
+ }
|
||||
|
|
Loading…
Add table
Reference in a new issue