24w04a and Via API usage update

This commit is contained in:
FlorianMichael 2024-01-26 13:54:11 +01:00
parent c31637cdbf
commit bcb3c57832
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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<String, Object> map, final Object key) {
return ((Object) this) instanceof ConfigPatcher || map.containsKey(key);
}

View File

@ -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 = "<clinit>", at = @At(value = "INVOKE", target = "Lcom/viaversion/viaversion/api/protocol/version/ProtocolVersion;register(ILjava/lang/String;)Lcom/viaversion/viaversion/api/protocol/version/ProtocolVersion;"))