Fix missing username console death message (#5654) (#5658)

This commit is contained in:
Kacper Płażewski 2021-05-17 00:31:40 +02:00
parent f9c3d93f76
commit 282e51eda2

View file

@ -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));
+ }