mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-22 11:56:21 +01:00
24w04a and Via API usage update
This commit is contained in:
parent
c31637cdbf
commit
bcb3c57832
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;"))
|
||||
|
Loading…
Reference in New Issue
Block a user