diff --git a/gradle.properties b/gradle.properties index 26803dc6..0e9a5f7e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,8 +14,8 @@ maven_group=de.florianmichael archives_base_name=viafabricplus # ViaVersion Libraries -viaversion_version=4.10.0-24w03b-SNAPSHOT -viabackwards_version=4.10.0-24w03a-SNAPSHOT +viaversion_version=4.10.0-24w04a-SNAPSHOT +viabackwards_version=4.10.0-24w04a-SNAPSHOT vialegacy_version=2.2.22-SNAPSHOT viaaprilfools_version=2.0.11-SNAPSHOT vialoader_version=2.2.13-SNAPSHOT diff --git a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/viaversion/MixinConfig.java b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/viaversion/MixinConfig.java index 847895c5..c9e64320 100644 --- a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/viaversion/MixinConfig.java +++ b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/viaversion/MixinConfig.java @@ -30,7 +30,7 @@ import java.util.Map; @Mixin(value = Config.class, remap = false) public abstract class MixinConfig { - @Redirect(method = "loadConfig(Ljava/io/File;Ljava/net/URL;)Ljava/util/Map;", at = @At(value = "INVOKE", target = "Ljava/util/Map;containsKey(Ljava/lang/Object;)Z")) + @Redirect(method = "loadConfig(Ljava/io/File;Lcom/viaversion/viaversion/util/InputStreamSupplier;)Ljava/util/Map;", at = @At(value = "INVOKE", target = "Ljava/util/Map;containsKey(Ljava/lang/Object;)Z")) private boolean allowConfigPatching(final Map map, final Object key) { return ((Object) this) instanceof ConfigPatcher || map.containsKey(key); } diff --git a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/viaversion/MixinProtocolVersion.java b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/viaversion/MixinProtocolVersion.java index 7f281731..04d173a5 100644 --- a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/viaversion/MixinProtocolVersion.java +++ b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/viaversion/MixinProtocolVersion.java @@ -54,7 +54,7 @@ public abstract class MixinProtocolVersion { viaFabricPlus$remaps.put("1.19.1/2", new Pair<>("1.19.1-1.19.2", null)); viaFabricPlus$remaps.put("1.20/1.20.1", new Pair<>("1.20-1.20.1", null)); viaFabricPlus$remaps.put("1.20.3/1.20.4", new Pair<>("1.20.3-1.20.4", null)); - viaFabricPlus$remaps.put("1.20.5", new Pair<>("24w03b", null)); + viaFabricPlus$remaps.put("1.20.5", new Pair<>("24w04a", null)); } @Redirect(method = "", at = @At(value = "INVOKE", target = "Lcom/viaversion/viaversion/api/protocol/version/ProtocolVersion;register(ILjava/lang/String;)Lcom/viaversion/viaversion/api/protocol/version/ProtocolVersion;"))