mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Support Bedrock 1.21.2
This commit is contained in:
parent
0a928c41b0
commit
f825007d9a
1 changed files with 9 additions and 4 deletions
|
@ -43,13 +43,17 @@ import java.util.StringJoiner;
|
||||||
*/
|
*/
|
||||||
public final class GameProtocol {
|
public final class GameProtocol {
|
||||||
|
|
||||||
|
// Surprise protocol bump WOW
|
||||||
|
private static final BedrockCodec BEDROCK_V686 = Bedrock_v685.CODEC.toBuilder()
|
||||||
|
.protocolVersion(686)
|
||||||
|
.minecraftVersion("1.21.2")
|
||||||
|
.build();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default Bedrock codec that should act as a fallback. Should represent the latest available
|
* Default Bedrock codec that should act as a fallback. Should represent the latest available
|
||||||
* release of the game that Geyser supports.
|
* release of the game that Geyser supports.
|
||||||
*/
|
*/
|
||||||
public static final BedrockCodec DEFAULT_BEDROCK_CODEC = CodecProcessor.processCodec(Bedrock_v685.CODEC.toBuilder()
|
public static final BedrockCodec DEFAULT_BEDROCK_CODEC = CodecProcessor.processCodec(BEDROCK_V686);
|
||||||
.minecraftVersion("1.21.1")
|
|
||||||
.build());
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of all supported Bedrock versions that can join Geyser
|
* A list of all supported Bedrock versions that can join Geyser
|
||||||
|
@ -66,9 +70,10 @@ public final class GameProtocol {
|
||||||
SUPPORTED_BEDROCK_CODECS.add(CodecProcessor.processCodec(Bedrock_v671.CODEC.toBuilder()
|
SUPPORTED_BEDROCK_CODECS.add(CodecProcessor.processCodec(Bedrock_v671.CODEC.toBuilder()
|
||||||
.minecraftVersion("1.20.80/1.20.81")
|
.minecraftVersion("1.20.80/1.20.81")
|
||||||
.build()));
|
.build()));
|
||||||
SUPPORTED_BEDROCK_CODECS.add(CodecProcessor.processCodec(DEFAULT_BEDROCK_CODEC.toBuilder()
|
SUPPORTED_BEDROCK_CODECS.add(CodecProcessor.processCodec(Bedrock_v685.CODEC.toBuilder()
|
||||||
.minecraftVersion("1.21.0/1.21.1")
|
.minecraftVersion("1.21.0/1.21.1")
|
||||||
.build()));
|
.build()));
|
||||||
|
SUPPORTED_BEDROCK_CODECS.add(DEFAULT_BEDROCK_CODEC);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue