mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-03-02 03:51:05 +01:00
Release 3.0.23
This commit is contained in:
parent
9cf8708704
commit
e12cfd9fcf
@ -54,7 +54,7 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
include "com.viaversion:viaversion-common:4.9.2"
|
||||
include "com.viaversion:viabackwards-common:4.9.2-SNAPSHOT"
|
||||
include "com.viaversion:viabackwards-common:4.9.2-20231208.084014-2"
|
||||
include "com.viaversion:viarewind-common:3.0.5"
|
||||
include("net.raphimc:ViaLegacy:2.2.21") {
|
||||
exclude group: "net.lenni0451.mcstructs", module: "text"
|
||||
|
@ -4,4 +4,4 @@ org.gradle.configureondemand=true
|
||||
|
||||
maven_group=net.raphimc
|
||||
maven_name=ViaProxy
|
||||
maven_version=3.0.23-SNAPSHOT
|
||||
maven_version=3.0.23
|
||||
|
@ -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-1.20.4", null));
|
||||
remaps.put("1.20.3", new Pair<>("1.20.3-1.20.4", new VersionRange("1.20", 3, 4)));
|
||||
}
|
||||
|
||||
@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;"))
|
||||
@ -60,6 +60,9 @@ public abstract class MixinProtocolVersion {
|
||||
final Pair<String, VersionRange> remapEntry = remaps.get(name);
|
||||
if (remapEntry != null) {
|
||||
if (remapEntry.key() != null) name = remapEntry.key();
|
||||
if (remapEntry.value() != null) {
|
||||
return ProtocolVersion.register(version, name, remapEntry.value());
|
||||
}
|
||||
}
|
||||
|
||||
return ProtocolVersion.register(version, name);
|
||||
@ -72,6 +75,9 @@ public abstract class MixinProtocolVersion {
|
||||
final Pair<String, VersionRange> remapEntry = remaps.get(name);
|
||||
if (remapEntry != null) {
|
||||
if (remapEntry.key() != null) name = remapEntry.key();
|
||||
if (remapEntry.value() != null) {
|
||||
return ProtocolVersion.register(version, snapshotVersion, name, remapEntry.value());
|
||||
}
|
||||
}
|
||||
|
||||
return ProtocolVersion.register(version, snapshotVersion, name);
|
||||
|
Loading…
Reference in New Issue
Block a user