Fix 1.19.3 AxiomBigPayloadHandler injection
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-09-15 16:05:58 +02:00
Ursprung 162bfc8fe2
Commit 610ba248ea

Datei anzeigen

@ -26,7 +26,7 @@ import java.util.List;
@ChannelHandler.Sharable
public class AxiomBigPayloadHandler extends ChannelInboundHandlerAdapter {
private static final Reflection.Method<ConnectionProtocol, Integer> getPacketId = Reflection.getTypedMethod(ConnectionProtocol.class, int.class, PacketFlow.class, Packet.class);
private static final Reflection.Method<ConnectionProtocol, Integer> getPacketId = Reflection.getTypedMethod(ConnectionProtocol.class, Reflection.VERSION > 1902 ? int.class : Integer.class, PacketFlow.class, Packet.class);
private static final int PLUGINMESSAGE_PACKETID = getPacketId.invoke(ConnectionProtocol.PLAY, PacketFlow.SERVERBOUND, new ServerboundCustomPayloadPacket(null, null));
private final Player player;