Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Updated changes for latest Geyser version
Dieser Commit ist enthalten in:
Ursprung
d8b63b9310
Commit
378aa6ed99
@ -31,8 +31,11 @@ public final class PluginMessageChannels {
|
||||
public static final String SKIN = "floodgate:skin";
|
||||
public static final String FORM = "floodgate:form";
|
||||
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
|
||||
|
@ -103,7 +103,7 @@ public class JavaCustomPayloadTranslator extends PacketTranslator<ClientboundCus
|
||||
transferPacket.setPort(port);
|
||||
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");
|
||||
byte[] data = packet.getData();
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren