mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 09:16:06 +01:00
e01dc013f7
By: md_5 <git@md-5.net>
12 lines
963 B
Diff
12 lines
963 B
Diff
--- a/net/minecraft/network/protocol/common/ServerboundCustomPayloadPacket.java
|
|
+++ b/net/minecraft/network/protocol/common/ServerboundCustomPayloadPacket.java
|
|
@@ -16,8 +16,7 @@
|
|
private static final int MAX_PAYLOAD_SIZE = 32767;
|
|
public static final StreamCodec<PacketDataSerializer, ServerboundCustomPayloadPacket> STREAM_CODEC = CustomPacketPayload.codec((minecraftkey) -> {
|
|
return DiscardedPayload.codec(minecraftkey, 32767);
|
|
- }, (List) SystemUtils.make(Lists.newArrayList(new CustomPacketPayload.c[]{new CustomPacketPayload.c<>(BrandPayload.TYPE, BrandPayload.STREAM_CODEC)}), (arraylist) -> {
|
|
- })).map(ServerboundCustomPayloadPacket::new, ServerboundCustomPayloadPacket::payload);
|
|
+ }, java.util.Collections.emptyList()).map(ServerboundCustomPayloadPacket::new, ServerboundCustomPayloadPacket::payload); // CraftBukkit - treat all packets the same
|
|
|
|
@Override
|
|
public PacketType<ServerboundCustomPayloadPacket> type() {
|