1.20.3-pre3

This commit is contained in:
RaphiMC 2023-11-27 17:49:55 +01:00
parent 816eaa91d4
commit c895f8a228
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
3 changed files with 5 additions and 4 deletions

View File

@ -53,8 +53,8 @@ repositories {
}
dependencies {
include "com.viaversion:viaversion-common:4.9.0-1.20.3-pre2-SNAPSHOT"
include "com.viaversion:viabackwards-common:4.9.0-1.20.3-pre1-SNAPSHOT"
include "com.viaversion:viaversion-common:4.9.0-1.20.3-pre3-SNAPSHOT"
include "com.viaversion:viabackwards-common:4.9.0-1.20.3-pre3-SNAPSHOT"
include "com.viaversion:viarewind-common:3.0.4-SNAPSHOT"
include("net.raphimc:ViaLegacy:2.2.21-SNAPSHOT") {
exclude group: "net.lenni0451.mcstructs", module: "text"

View File

@ -51,7 +51,7 @@ public abstract class MixinProtocolVersion {
remaps.put("1.18/1.18.1", new Pair<>("1.18-1.18.1", null));
remaps.put("1.19.1/2", new Pair<>("1.19.1-1.19.2", null));
remaps.put("1.20/1.20.1", new Pair<>("1.20-1.20.1", null));
remaps.put("1.20.3", new Pair<>("1.20.3-pre2", null));
remaps.put("1.20.3", new Pair<>("1.20.3-pre3", null));
}
@Redirect(method = "<clinit>", at = @At(value = "INVOKE", target = "Lcom/viaversion/viaversion/api/protocol/version/ProtocolVersion;register(ILjava/lang/String;)Lcom/viaversion/viaversion/api/protocol/version/ProtocolVersion;"))

View File

@ -30,6 +30,7 @@ import net.raphimc.netminecraft.constants.ConnectionState;
import net.raphimc.netminecraft.constants.MCPipeline;
import net.raphimc.netminecraft.util.LazyLoadBase;
import net.raphimc.netminecraft.util.ServerAddress;
import net.raphimc.viabedrock.protocol.data.ProtocolConstants;
import net.raphimc.vialoader.netty.VLPipeline;
import net.raphimc.vialoader.netty.viabedrock.PingEncapsulationCodec;
import net.raphimc.vialoader.util.VersionEnum;
@ -62,7 +63,7 @@ public class BedrockProxyConnection extends ProxyConnection {
bootstrap
.option(RakChannelOption.CONNECT_TIMEOUT_MILLIS, 4_000)
.option(RakChannelOption.IP_TOS, 0x18)
.option(RakChannelOption.RAK_PROTOCOL_VERSION, 11)
.option(RakChannelOption.RAK_PROTOCOL_VERSION, ProtocolConstants.BEDROCK_RAKNET_PROTOCOL_VERSION)
.option(RakChannelOption.RAK_CONNECT_TIMEOUT, 4_000L)
.option(RakChannelOption.RAK_SESSION_TIMEOUT, 30_000L)
.option(RakChannelOption.RAK_GUID, ThreadLocalRandom.current().nextLong())