mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-08 09:40:07 +01:00
Fix startup crash, use jitpack for viabackwards 1.14
This commit is contained in:
parent
61f473875e
commit
ff351bcd6c
@ -28,6 +28,7 @@ repositories {
|
||||
maven { url = URI.create("https://repo.viaversion.com/") }
|
||||
maven { url = URI.create("https://oss.sonatype.org/content/repositories/snapshots") }
|
||||
maven { url = URI.create("https://maven.fabricmc.net/") }
|
||||
maven { url = URI.create("https://jitpack.io/")}
|
||||
}
|
||||
|
||||
|
||||
@ -45,7 +46,7 @@ dependencies {
|
||||
// transitive = false, viabackwards-core because Guava is conflicting on runClient
|
||||
shade("us.myles:viaversion:2.0.0-19w12b") { isTransitive = false }
|
||||
shade("de.gerrygames:viarewind-core:1.4.0") { isTransitive = false }
|
||||
shade("nl.matsv:viabackwards-core:3.0.0-19w11b") { isTransitive = false }
|
||||
shade("com.github.ViaVersion.ViaBackwards:viabackwards-core:1.14-SNAPSHOT") { isTransitive = false }
|
||||
|
||||
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
|
||||
|
||||
|
@ -96,7 +96,12 @@ public abstract class MixinMultiplayerScreen extends Screen {
|
||||
this.listeners.add(protocolVersion);
|
||||
}
|
||||
|
||||
@Inject(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/Screen;render(IIF)V"), remap = false)
|
||||
@Inject(method = "render",
|
||||
at = {
|
||||
@At(value = "INVOKE", target = "Lnet/minecraft/client/gui/Screen;render(IIF)V"),
|
||||
@At(value = "INVOKE", target = "Lnet/minecraft/class_437;render(IIF)V") // Generated refmap doesn't have it
|
||||
},
|
||||
remap = false)
|
||||
private void onRender(int int_1, int int_2, float float_1, CallbackInfo ci) {
|
||||
protocolVersion.render(int_1, int_2, float_1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user