SPIGOT-7503: Remove special handling for minecraft:brand custom channel
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
private static final int MAX_PAYLOAD_SIZE = 32767;
|
private static final int MAX_PAYLOAD_SIZE = 32767;
|
||||||
- private static final Map<MinecraftKey, PacketDataSerializer.a<? extends CustomPacketPayload>> KNOWN_TYPES = ImmutableMap.builder().put(BrandPayload.ID, BrandPayload::new).build();
|
- private static final Map<MinecraftKey, PacketDataSerializer.a<? extends CustomPacketPayload>> KNOWN_TYPES = ImmutableMap.builder().put(BrandPayload.ID, BrandPayload::new).build();
|
||||||
+ private static final Map<MinecraftKey, PacketDataSerializer.a<? extends CustomPacketPayload>> KNOWN_TYPES = ImmutableMap.<MinecraftKey, PacketDataSerializer.a<? extends CustomPacketPayload>>builder().put(BrandPayload.ID, BrandPayload::new).build(); // CraftBukkit - decompile error
|
+ private static final Map<MinecraftKey, PacketDataSerializer.a<? extends CustomPacketPayload>> KNOWN_TYPES = ImmutableMap.<MinecraftKey, PacketDataSerializer.a<? extends CustomPacketPayload>>builder().build(); // CraftBukkit - no special handling
|
||||||
|
|
||||||
public ServerboundCustomPayloadPacket(PacketDataSerializer packetdataserializer) {
|
public ServerboundCustomPayloadPacket(PacketDataSerializer packetdataserializer) {
|
||||||
this(readPayload(packetdataserializer.readResourceLocation(), packetdataserializer));
|
this(readPayload(packetdataserializer.readResourceLocation(), packetdataserializer));
|
||||||
|
|||||||
Reference in New Issue
Block a user