3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-20 06:50:09 +01:00

Update to release protocol 1.19.30

Dieser Commit ist enthalten in:
Camotoy 2022-09-17 16:37:30 -04:00
Ursprung 0aa7411d02
Commit c8a51d7834
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F
4 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -31,7 +31,7 @@ object Versions {
const val gsonVersion = "2.3.1" // Provided by Spigot 1.8.8 const val gsonVersion = "2.3.1" // Provided by Spigot 1.8.8
const val nbtVersion = "2.1.0" const val nbtVersion = "2.1.0"
const val websocketVersion = "1.5.1" const val websocketVersion = "1.5.1"
const val protocolVersion = "f0feacd" const val protocolVersion = "96a4daf"
const val raknetVersion = "1.6.28-20220125.214016-6" const val raknetVersion = "1.6.28-20220125.214016-6"
const val mcauthlibVersion = "d9d773e" const val mcauthlibVersion = "d9d773e"
const val mcprotocollibversion = "9f78bd5" const val mcprotocollibversion = "9f78bd5"

Datei anzeigen

@ -30,7 +30,7 @@ dependencies {
// Network libraries // Network libraries
implementation("org.java-websocket", "Java-WebSocket", Versions.websocketVersion) implementation("org.java-websocket", "Java-WebSocket", Versions.websocketVersion)
api("com.github.CloudburstMC.Protocol", "bedrock-v553", Versions.protocolVersion) { api("com.github.CloudburstMC.Protocol", "bedrock-v554", Versions.protocolVersion) {
exclude("com.nukkitx.network", "raknet") exclude("com.nukkitx.network", "raknet")
exclude("com.nukkitx", "nbt") exclude("com.nukkitx", "nbt")
} }

Datei anzeigen

@ -28,7 +28,7 @@ package org.geysermc.geyser.network;
import com.nukkitx.protocol.bedrock.BedrockPong; import com.nukkitx.protocol.bedrock.BedrockPong;
import com.nukkitx.protocol.bedrock.BedrockServerEventHandler; import com.nukkitx.protocol.bedrock.BedrockServerEventHandler;
import com.nukkitx.protocol.bedrock.BedrockServerSession; import com.nukkitx.protocol.bedrock.BedrockServerSession;
import com.nukkitx.protocol.bedrock.v553.Bedrock_v553; import com.nukkitx.protocol.bedrock.v554.Bedrock_v554;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.DefaultEventLoopGroup; import io.netty.channel.DefaultEventLoopGroup;
@ -172,7 +172,7 @@ public class ConnectorServerEventHandler implements BedrockServerEventHandler {
@Override @Override
public void onSessionCreation(@Nonnull BedrockServerSession bedrockServerSession) { public void onSessionCreation(@Nonnull BedrockServerSession bedrockServerSession) {
try { try {
bedrockServerSession.setPacketCodec(Bedrock_v553.V553_CODEC); // Has the RequestNetworkSettingsPacket bedrockServerSession.setPacketCodec(Bedrock_v554.V554_CODEC); // Has the RequestNetworkSettingsPacket
bedrockServerSession.setLogging(true); bedrockServerSession.setLogging(true);
bedrockServerSession.setCompressionLevel(geyser.getConfig().getBedrock().getCompressionLevel()); bedrockServerSession.setCompressionLevel(geyser.getConfig().getBedrock().getCompressionLevel());
bedrockServerSession.setPacketHandler(new UpstreamPacketHandler(geyser, new GeyserSession(geyser, bedrockServerSession, eventLoopGroup.next()))); bedrockServerSession.setPacketHandler(new UpstreamPacketHandler(geyser, new GeyserSession(geyser, bedrockServerSession, eventLoopGroup.next())));

Datei anzeigen

@ -31,7 +31,7 @@ import com.nukkitx.protocol.bedrock.BedrockPacketCodec;
import com.nukkitx.protocol.bedrock.v527.Bedrock_v527; import com.nukkitx.protocol.bedrock.v527.Bedrock_v527;
import com.nukkitx.protocol.bedrock.v534.Bedrock_v534; import com.nukkitx.protocol.bedrock.v534.Bedrock_v534;
import com.nukkitx.protocol.bedrock.v544.Bedrock_v544; import com.nukkitx.protocol.bedrock.v544.Bedrock_v544;
import com.nukkitx.protocol.bedrock.v553.Bedrock_v553; import com.nukkitx.protocol.bedrock.v554.Bedrock_v554;
import org.geysermc.geyser.session.GeyserSession; import org.geysermc.geyser.session.GeyserSession;
import java.util.ArrayList; import java.util.ArrayList;
@ -72,7 +72,7 @@ public final class GameProtocol {
SUPPORTED_BEDROCK_CODECS.add(DEFAULT_BEDROCK_CODEC.toBuilder() SUPPORTED_BEDROCK_CODECS.add(DEFAULT_BEDROCK_CODEC.toBuilder()
.minecraftVersion("1.19.21/1.19.22") .minecraftVersion("1.19.21/1.19.22")
.build()); .build());
SUPPORTED_BEDROCK_CODECS.add(Bedrock_v553.V553_CODEC); SUPPORTED_BEDROCK_CODECS.add(Bedrock_v554.V554_CODEC);
} }
/** /**