3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-27 00:23:03 +01:00

Updated changes for latest Geyser version

Dieser Commit ist enthalten in:
Tim203 2022-06-07 00:31:29 +02:00
Ursprung d8b63b9310
Commit 378aa6ed99
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 064EE9F5BF7C3EE8
2 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -31,8 +31,11 @@ public final class PluginMessageChannels {
public static final String SKIN = "floodgate:skin"; public static final String SKIN = "floodgate:skin";
public static final String FORM = "floodgate:form"; public static final String FORM = "floodgate:form";
public static final String TRANSFER = "floodgate:transfer"; public static final String TRANSFER = "floodgate:transfer";
public static final String PACKET = "floodgate:packet";
private static final byte[] FLOODGATE_REGISTER_DATA = String.join("\0", SKIN, FORM, TRANSFER).getBytes(Charsets.UTF_8); private static final byte[] FLOODGATE_REGISTER_DATA =
String.join("\0", SKIN, FORM, TRANSFER, PACKET)
.getBytes(Charsets.UTF_8);
/** /**
* Get the prebuilt register data as a byte array * Get the prebuilt register data as a byte array

Datei anzeigen

@ -103,7 +103,7 @@ public class JavaCustomPayloadTranslator extends PacketTranslator<ClientboundCus
transferPacket.setPort(port); transferPacket.setPort(port);
session.sendUpstreamPacket(transferPacket); session.sendUpstreamPacket(transferPacket);
} else if (channel.equals("floodgate:packet")) { } else if (channel.equals(PluginMessageChannels.PACKET)) {
logger.debug("A packet has been sent using the Floodgate api"); logger.debug("A packet has been sent using the Floodgate api");
byte[] data = packet.getData(); byte[] data = packet.getData();