diff options
author | Noah van der Aa <[email protected]> | 2023-09-22 17:35:51 +0200 |
---|---|---|
committer | Noah van der Aa <[email protected]> | 2023-09-22 17:35:51 +0200 |
commit | 3aa8e7ef3f52ba6824806cf2a82fccea834c2f02 (patch) | |
tree | 44393b481f404d88922c404a3fd15270905aa3fc /patches/removed | |
parent | 4875ee481409966537d23a1dc2e8daec283dfb0e (diff) | |
download | Paper-3aa8e7ef3f52ba6824806cf2a82fccea834c2f02.tar.gz Paper-3aa8e7ef3f52ba6824806cf2a82fccea834c2f02.zip |
more more more more more more more more more more work
Diffstat (limited to 'patches/removed')
-rw-r--r-- | patches/removed/1.20.2/0839-Don-t-print-component-in-resource-pack-rejection-mes.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/removed/1.20.2/0839-Don-t-print-component-in-resource-pack-rejection-mes.patch b/patches/removed/1.20.2/0839-Don-t-print-component-in-resource-pack-rejection-mes.patch new file mode 100644 index 0000000000..8d06a57105 --- /dev/null +++ b/patches/removed/1.20.2/0839-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: Fri, 1 Jul 2022 22:00:06 -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 42bb941af5eac6e4a4d79a59be9e1ac56468c4b4..5c4a4b7efff2a00d7a35d902b4e18e02d4489122 100644 +--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java ++++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java +@@ -2037,7 +2037,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic + public void handleResourcePackResponse(ServerboundResourcePackPacket packet) { + PacketUtils.ensureRunningOnSameThread(packet, this, this.player.serverLevel()); + 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(Component.translatable("multiplayer.requiredTexturePrompt.disconnect"), org.bukkit.event.player.PlayerKickEvent.Cause.RESOURCE_PACK_REJECTION); // Paper - add cause + } + // Paper start |