0.4.6: 1.18.2

This commit is contained in:
creeper123123321 2022-02-28 13:00:25 -03:00
parent 59aaeca4c5
commit d1571ea360
5 changed files with 10 additions and 10 deletions

View File

@ -19,7 +19,7 @@ def ENV = System.getenv()
group = "com.viaversion.fabric"
description = "Client-side and server-side ViaVersion implementation for Fabric"
version = "0.4.5+" + ENV.GITHUB_RUN_NUMBER + "-" + getBranch()
version = "0.4.6+" + ENV.GITHUB_RUN_NUMBER + "-" + getBranch()
logger.lifecycle("Building ViaFabric: $version")
def getBranch() {
@ -150,7 +150,7 @@ processResources {
}
}
List<String> versionToAdd = new ArrayList<>(Arrays.asList("Fabric", "1.18.1", "1.17.1",
List<String> versionToAdd = new ArrayList<>(Arrays.asList("Fabric", "1.18.2", "1.17.1",
"1.16.5", "1.15.2", "1.14.4", "1.8.9"))
versionToAdd.addAll(IntStream.rangeClosed(8, 18)
.mapToObj { n -> (String) "Java $n" }

View File

@ -1,6 +1,6 @@
# rip my ram
org.gradle.jvmargs=-Xms32M -Xmx3G
loader_version=0.12.12
viaver_version=4.1.2-SNAPSHOT
loader_version=0.13.3
viaver_version=4.2.1
yaml_version=1.30

View File

@ -1,7 +1,7 @@
dependencies {
minecraft("com.mojang:minecraft:1.18.1")
mappings("net.fabricmc:yarn:1.18.1+build.14:v2")
minecraft("com.mojang:minecraft:1.18.2")
mappings("net.fabricmc:yarn:1.18.2+build.1:v2")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.45.0+1.18")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.47.8+1.18.2")
modImplementation("com.terraformersmc:modmenu:3.0.0")
}

View File

@ -132,7 +132,7 @@ public class ViaConfigScreen extends Screen {
}
@Override
public void onClose() {
public void close() {
this.client.setScreen(this.parent);
}

View File

@ -3,7 +3,7 @@ package com.viaversion.fabric.mc118.mixin.pipeline;
import com.viaversion.fabric.common.handler.PipelineReorderEvent;
import io.netty.channel.Channel;
import net.minecraft.network.ClientConnection;
import org.apache.logging.log4j.Logger;
import org.slf4j.Logger;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
@ -22,7 +22,7 @@ public class MixinClientConnection {
remap = false,
at = @At(
value = "INVOKE",
target = "Lorg/apache/logging/log4j/Logger;debug(Ljava/lang/String;Ljava/lang/Throwable;)V"
target = "Lorg/slf4j/Logger;debug(Ljava/lang/String;Ljava/lang/Throwable;)V"
))
private void redirectDebug(Logger logger, String message, Throwable t) {
if ("Failed to sent packet".equals(message)) {