diff options
author | MiniDigger | Martin <[email protected]> | 2024-01-14 11:04:49 +0100 |
---|---|---|
committer | MiniDigger | Martin <[email protected]> | 2024-01-14 11:04:49 +0100 |
commit | bee74680e607c2e29b038329f62181238911cd83 (patch) | |
tree | 708fd1a4a0227d9071243adf2a42d5e9e96cde4a /patch-remap/mache-spigotflower/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java.patch | |
parent | 0a44692ef6ff6e255d48eb3ba1bb114166eafda9 (diff) | |
download | Paper-softspoon.tar.gz Paper-softspoon.zip |
add remapped patches as a testsoftspoon
Diffstat (limited to 'patch-remap/mache-spigotflower/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java.patch b/patch-remap/mache-spigotflower/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java.patch new file mode 100644 index 0000000000..5567cc06aa --- /dev/null +++ b/patch-remap/mache-spigotflower/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java.patch @@ -0,0 +1,43 @@ +--- a/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java ++++ b/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java +@@ -1,3 +1,4 @@ ++// mc-dev import + package net.minecraft.network.protocol.handshake; + + import net.minecraft.network.ConnectionProtocol; +@@ -8,26 +9,23 @@ + + private static final int MAX_HOST_LENGTH = 255; + +- public ClientIntentionPacket(FriendlyByteBuf friendlybytebuf) { +- this(friendlybytebuf.readVarInt(), friendlybytebuf.readUtf(255), friendlybytebuf.readUnsignedShort(), ClientIntent.byId(friendlybytebuf.readVarInt())); ++ public ClientIntentionPacket(FriendlyByteBuf buffer) { ++ this(buffer.readVarInt(), buffer.readUtf(255), buffer.readUnsignedShort(), ClientIntent.byId(buffer.readVarInt())); + } + + @Override +- @Override +- public void write(FriendlyByteBuf friendlybytebuf) { +- friendlybytebuf.writeVarInt(this.protocolVersion); +- friendlybytebuf.writeUtf(this.hostName); +- friendlybytebuf.writeShort(this.port); +- friendlybytebuf.writeVarInt(this.intention.id()); ++ public void write(FriendlyByteBuf buffer) { ++ buffer.writeVarInt(this.protocolVersion); ++ buffer.writeUtf(this.hostName); ++ buffer.writeShort(this.port); ++ buffer.writeVarInt(this.intention.id()); + } + +- @Override +- public void handle(ServerHandshakePacketListener serverhandshakepacketlistener) { +- serverhandshakepacketlistener.handleIntention(this); ++ public void handle(ServerHandshakePacketListener handler) { ++ handler.handleIntention(this); + } + + @Override +- @Override + public ConnectionProtocol nextProtocol() { + return this.intention.protocol(); + } |