aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower/net/minecraft/network/protocol/game/ClientboundSystemChatPacket.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower/net/minecraft/network/protocol/game/ClientboundSystemChatPacket.java.patch')
-rw-r--r--patch-remap/mache-spigotflower/net/minecraft/network/protocol/game/ClientboundSystemChatPacket.java.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower/net/minecraft/network/protocol/game/ClientboundSystemChatPacket.java.patch b/patch-remap/mache-spigotflower/net/minecraft/network/protocol/game/ClientboundSystemChatPacket.java.patch
new file mode 100644
index 0000000000..0cdd79b9c8
--- /dev/null
+++ b/patch-remap/mache-spigotflower/net/minecraft/network/protocol/game/ClientboundSystemChatPacket.java.patch
@@ -0,0 +1,39 @@
+--- a/net/minecraft/network/protocol/game/ClientboundSystemChatPacket.java
++++ b/net/minecraft/network/protocol/game/ClientboundSystemChatPacket.java
+@@ -1,3 +1,4 @@
++// mc-dev import
+ package net.minecraft.network.protocol.game;
+
+ import net.minecraft.network.FriendlyByteBuf;
+@@ -6,24 +7,21 @@
+
+ public record ClientboundSystemChatPacket(Component content, boolean overlay) implements Packet<ClientGamePacketListener> {
+
+- public ClientboundSystemChatPacket(FriendlyByteBuf friendlybytebuf) {
+- this(friendlybytebuf.readComponentTrusted(), friendlybytebuf.readBoolean());
++ public ClientboundSystemChatPacket(FriendlyByteBuf buffer) {
++ this(buffer.readComponentTrusted(), buffer.readBoolean());
+ }
+
+ @Override
+- @Override
+- public void write(FriendlyByteBuf friendlybytebuf) {
+- friendlybytebuf.writeComponent(this.content);
+- friendlybytebuf.writeBoolean(this.overlay);
++ public void write(FriendlyByteBuf buffer) {
++ buffer.writeComponent(this.content);
++ buffer.writeBoolean(this.overlay);
+ }
+
+- @Override
+- public void handle(ClientGamePacketListener clientgamepacketlistener) {
+- clientgamepacketlistener.handleSystemChat(this);
++ public void handle(ClientGamePacketListener handler) {
++ handler.handleSystemChat(this);
+ }
+
+ @Override
+- @Override
+ public boolean isSkippable() {
+ return true;
+ }