mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-21 11:35:16 +01:00
Remove mixin class name workaround, update dependencies
This commit is contained in:
parent
3f75d71e4d
commit
16b01076d1
@ -50,11 +50,11 @@ dependencies {
|
|||||||
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
|
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
|
||||||
|
|
||||||
minecraft("com.mojang:minecraft:1.14 Pre-Release 5")
|
minecraft("com.mojang:minecraft:1.14 Pre-Release 5")
|
||||||
mappings("net.fabricmc:yarn:1.14 Pre-Release 5+build.2")
|
mappings("net.fabricmc:yarn:1.14 Pre-Release 5+build.4")
|
||||||
modCompile("net.fabricmc:fabric-loader:0.4.1+build.126")
|
modCompile("net.fabricmc:fabric-loader:0.4.2+build.131")
|
||||||
|
|
||||||
modCompile("net.fabricmc:fabric:0.2.7+build.123")
|
modCompile("net.fabricmc:fabric:0.2.7+build.126")
|
||||||
include("net.fabricmc:fabric:0.2.7+build.123")
|
include("net.fabricmc:fabric:0.2.7+build.126")
|
||||||
}
|
}
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
|
@ -37,10 +37,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
import us.myles.ViaVersion.api.data.UserConnection;
|
import us.myles.ViaVersion.api.data.UserConnection;
|
||||||
import us.myles.ViaVersion.api.protocol.ProtocolPipeline;
|
import us.myles.ViaVersion.api.protocol.ProtocolPipeline;
|
||||||
|
|
||||||
@Mixin(targets = {
|
@Mixin(targets = "net.minecraft.server.ServerNetworkIo$1")
|
||||||
"net.minecraft.server.ServerNetworkIo$1",
|
|
||||||
"net/minecraft/class_3242$1" // Workaround
|
|
||||||
})
|
|
||||||
public class MixinServerNetworkIoChInit {
|
public class MixinServerNetworkIoChInit {
|
||||||
@Inject(method = "initChannel(Lio/netty/channel/Channel;)V", at = @At(value = "TAIL"), remap = false)
|
@Inject(method = "initChannel(Lio/netty/channel/Channel;)V", at = @At(value = "TAIL"), remap = false)
|
||||||
private void onInitChannel(Channel channel, CallbackInfo ci) {
|
private void onInitChannel(Channel channel, CallbackInfo ci) {
|
||||||
|
@ -39,10 +39,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
import us.myles.ViaVersion.api.data.UserConnection;
|
import us.myles.ViaVersion.api.data.UserConnection;
|
||||||
import us.myles.ViaVersion.api.protocol.ProtocolPipeline;
|
import us.myles.ViaVersion.api.protocol.ProtocolPipeline;
|
||||||
|
|
||||||
@Mixin(targets = {
|
@Mixin(targets = "net.minecraft.network.ClientConnection$1")
|
||||||
"net.minecraft.network.ClientConnection$1",
|
|
||||||
"net/minecraft/class_2535$1" // Workaround
|
|
||||||
})
|
|
||||||
public class MixinClientConnectionChInit {
|
public class MixinClientConnectionChInit {
|
||||||
@Inject(method = "initChannel(Lio/netty/channel/Channel;)V", at = @At(value = "TAIL"), remap = false)
|
@Inject(method = "initChannel(Lio/netty/channel/Channel;)V", at = @At(value = "TAIL"), remap = false)
|
||||||
private void onInitChannel(Channel channel, CallbackInfo ci) {
|
private void onInitChannel(Channel channel, CallbackInfo ci) {
|
||||||
|
Loading…
Reference in New Issue
Block a user