aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorpop4959 <[email protected]>2022-07-03 11:11:37 -0700
committerGitHub <[email protected]>2022-07-03 11:11:37 -0700
commitdf630a27cc2d0b3731bf5dd311c4119c9c5b43f6 (patch)
tree33fc1cbe2e5ee60b468a4db4ef293451fd84dceb
parent072f54c5f995de56e1c97dc15a4db4b97d688454 (diff)
downloadPaper-df630a27cc2d0b3731bf5dd311c4119c9c5b43f6.tar.gz
Paper-df630a27cc2d0b3731bf5dd311c4119c9c5b43f6.zip
Don't print component in resource pack rejection message (#8085)
-rw-r--r--patches/server/0913-Don-t-print-component-in-resource-pack-rejection-mes.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0913-Don-t-print-component-in-resource-pack-rejection-mes.patch b/patches/server/0913-Don-t-print-component-in-resource-pack-rejection-mes.patch
new file mode 100644
index 0000000000..85a197cdb4
--- /dev/null
+++ b/patches/server/0913-Don-t-print-component-in-resource-pack-rejection-mes.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: pop4959 <[email protected]>
+Date: Sat, 2 Jul 2022 11:56:26 -0700
+Subject: [PATCH] Don't print component in resource pack rejection message
+
+
+diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
+index 0b7923f67d27549f41c0d398d1b99737f0c8a746..3faf67d100e49836eb9b408e88c296e615ca33f8 100644
+--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
++++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
+@@ -1960,7 +1960,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Ser
+ public void handleResourcePackResponse(ServerboundResourcePackPacket packet) {
+ PacketUtils.ensureRunningOnSameThread(packet, this, this.player.getLevel());
+ if (packet.getAction() == ServerboundResourcePackPacket.Action.DECLINED && this.server.isResourcePackRequired()) {
+- ServerGamePacketListenerImpl.LOGGER.info("Disconnecting {} due to resource pack rejection", this.player.getName());
++ ServerGamePacketListenerImpl.LOGGER.info("Disconnecting {} due to resource pack rejection", this.player.getGameProfile().getName()); // Paper - Don't print component in resource pack rejection message
+ this.disconnect(new TranslatableComponent("multiplayer.requiredTexturePrompt.disconnect"), org.bukkit.event.player.PlayerKickEvent.Cause.RESOURCE_PACK_REJECTION); // Paper - add cause
+ }
+ // Paper start