Fix startup crash, use jitpack for viabackwards 1.14

This commit is contained in:
creeper123123321 2019-03-23 09:55:58 -03:00
parent 61f473875e
commit ff351bcd6c
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1
2 changed files with 8 additions and 2 deletions

View File

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

View File

@ -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);
}