3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-15 04:20:04 +01:00

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

Dieser Commit ist enthalten in:
Kacper Płażewski 2021-05-17 00:31:40 +02:00 committet von GitHub
Ursprung c639a52a69
Commit dc7b7a1600
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -448,7 +448,7 @@ index 0000000000000000000000000000000000000000..caa9708f321f04cd02534161231c0599
+} +}
diff --git a/src/main/java/io/papermc/paper/adventure/PaperAdventure.java b/src/main/java/io/papermc/paper/adventure/PaperAdventure.java diff --git a/src/main/java/io/papermc/paper/adventure/PaperAdventure.java b/src/main/java/io/papermc/paper/adventure/PaperAdventure.java
new file mode 100644 new file mode 100644
index 0000000000000000000000000000000000000000..cd2da276c09dcf98c1c50dc66aa30dd3b67b43af index 0000000000000000000000000000000000000000..c60457e9240c33a4721b82a00cef081fb320c8a7
--- /dev/null --- /dev/null
+++ b/src/main/java/io/papermc/paper/adventure/PaperAdventure.java +++ b/src/main/java/io/papermc/paper/adventure/PaperAdventure.java
@@ -0,0 +1,344 @@ @@ -0,0 +1,344 @@
@ -513,7 +513,7 @@ index 0000000000000000000000000000000000000000..cd2da276c09dcf98c1c50dc66aa30dd3
+ // calculate argument position + // calculate argument position
+ if (argIdx != null) { + if (argIdx != null) {
+ try { + try {
+ final int idx = Integer.parseInt(argIdx); + final int idx = Integer.parseInt(argIdx) - 1;
+ if (idx < args.size()) { + if (idx < args.size()) {
+ consumer.accept(args.get(idx)); + consumer.accept(args.get(idx));
+ } + }