Skip to content

Commit

Permalink
Release 3.0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Dec 8, 2023
1 parent 9cf8708 commit e12cfd9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private static void initMaps(CallbackInfo ci) {
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;"))
Expand All @@ -60,6 +60,9 @@ private static ProtocolVersion unregisterAndRenameVersions(int version, String n
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);
Expand All @@ -72,6 +75,9 @@ private static ProtocolVersion unregisterAndRenameVersions(int version, int snap
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);
Expand Down

0 comments on commit e12cfd9

Please sign in to comment.