0.4.8: fix links, 1.19.1

fixes #188
This commit is contained in:
creeper123123321 2022-07-27 17:57:11 -03:00
parent c1cbf7dacd
commit 3cedc30260
4 changed files with 15 additions and 10 deletions

View File

@ -20,7 +20,7 @@ def ENV = System.getenv()
group = "com.viaversion.fabric"
description = "Client-side and server-side ViaVersion implementation for Fabric"
version = "0.4.7+" + ENV.GITHUB_RUN_NUMBER + "-" + getBranch()
version = "0.4.8+" + ENV.GITHUB_RUN_NUMBER + "-" + getBranch()
logger.lifecycle("Building ViaFabric: $version")
def getBranch() {
@ -162,7 +162,7 @@ processResources {
}
List<String> mcReleases = new ArrayList<>(
Arrays.asList("1.19", "1.18.2", "1.17.1", "1.16.5", "1.15.2", "1.14.4", "1.8.9"))
Arrays.asList("1.19.1", "1.18.2", "1.17.1", "1.16.5", "1.15.2", "1.14.4", "1.8.9"))
List<String> javaVersions = IntStream.rangeClosed(8, 18)
.mapToObj { n -> (String) "Java $n" }
.collect(Collectors.toList())

View File

@ -4,8 +4,8 @@ org.gradle.jvmargs=-Xms32M -Xmx4G -XX:+UseG1GC -XX:+UseStringDeduplication
org.gradle.parallel=true
loader_version=0.14.8
viaver_version=4.4.0-1.19.1-rc2-SNAPSHOT
viaver_version=4.4.0
yaml_version=1.30
modrinth_mc_snapshot=1.19.1-rc2
curseforge_mc_snapshot=1.19-Snapshot
modrinth_mc_snapshot=
curseforge_mc_snapshot=

View File

@ -21,7 +21,12 @@ public class RemappingUtil {
return 0;
}
private static final LegacyComponentSerializer LEGACY_SERIALIZER = LegacyComponentSerializer.builder()
.character('§')
.extractUrls()
.build();
public static String legacyToJson(String legacy) {
return GsonComponentSerializer.gson().serialize(LegacyComponentSerializer.legacySection().deserialize(legacy));
return GsonComponentSerializer.gson().serialize(LEGACY_SERIALIZER.deserialize(legacy));
}
}

View File

@ -1,7 +1,7 @@
dependencies {
minecraft("com.mojang:minecraft:1.19.1-rc2")
mappings("net.fabricmc:yarn:1.19.1-rc2+build.3:v2")
minecraft("com.mojang:minecraft:1.19.1")
mappings("net.fabricmc:yarn:1.19.1+build.1:v2")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.58.1+1.19.1")
modImplementation("com.terraformersmc:modmenu:4.0.0")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.58.5+1.19.1")
modImplementation("com.terraformersmc:modmenu:4.0.4")
}