Skip to content

Commit

Permalink
Update for 1.21.40
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 committed Oct 22, 2024
1 parent 82b0c9c commit 08e0c3c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bootstrap/standalone/src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ session:
session-info:
host-name: "Geyser Test Server"
world-name: "\u00A7aGeyserMC \u00A7bDemo \u00A7f& \u00A7cTest \u00A7fServer"
version: 1.19.2
protocol: 527
version: 1.21.40
protocol: 748
players: 0
max-players: 20
ip: 51.210.124.95
ip: test.geysermc.org
port: 19132

# Friend/follower list sync settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.cloudburstmc.protocol.bedrock.codec.BedrockCodec;
import org.cloudburstmc.protocol.bedrock.codec.v748.Bedrock_v748;

import java.net.URI;
import java.time.Instant;
Expand Down Expand Up @@ -48,4 +50,9 @@ public class Constants {
* Used to be 1000, but the limit was increased in Aug 2024
*/
public static final int MAX_FRIENDS = 2000;

/**
* Used for the micro nethernet server that trasnfers the client to the real server
*/
public static final BedrockCodec BEDROCK_CODEC = Bedrock_v748.CODEC;
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.rtm516.mcxboxbroadcast.core.webrtc;

import com.rtm516.mcxboxbroadcast.core.Constants;
import com.rtm516.mcxboxbroadcast.core.Logger;
import com.rtm516.mcxboxbroadcast.core.SessionInfo;
import org.cloudburstmc.protocol.bedrock.codec.v729.Bedrock_v729;
import pe.pi.sctp4j.sctp.Association;
import pe.pi.sctp4j.sctp.AssociationListener;
import pe.pi.sctp4j.sctp.SCTPStream;
Expand Down Expand Up @@ -36,7 +36,7 @@ public void onDCEPStream(SCTPStream sctpStream, String label, int i) {
logger.debug("Received DCEP SCTP stream: " + sctpStream.toString());

if ("ReliableDataChannel".equals(label)) {
sctpStream.setSCTPStreamListener(new MinecraftDataHandler(sctpStream, Bedrock_v729.CODEC, sessionInfo, logger));
sctpStream.setSCTPStreamListener(new MinecraftDataHandler(sctpStream, Constants.BEDROCK_CODEC, sessionInfo, logger));
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
protocol = "3.0.0.Beta5-20240916.181041-6"
protocol = "3.0.0.Beta5-20241022.154658-14"
geyser ="2.4.1-SNAPSHOT"
jackson = "2.14.0"
java-websocket = "1.5.3"
Expand Down

0 comments on commit 08e0c3c

Please sign in to comment.