From 282e51eda2147c410d0005f21d5866cd0ecf1137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20P=C5=82a=C5=BCewski?= Date: Mon, 17 May 2021 00:31:40 +0200 Subject: [PATCH] Fix missing username console death message (#5654) (#5658) --- Spigot-Server-Patches/Adventure.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Adventure.patch b/Spigot-Server-Patches/Adventure.patch index 8ae9a16fd..a8c2dc4b5 100644 --- a/Spigot-Server-Patches/Adventure.patch +++ b/Spigot-Server-Patches/Adventure.patch @@ -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)); + }