From 0ee7bb03c3e4771a1e8c2d7a2efc921dab8b7c2c Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Tue, 16 Apr 2019 17:18:29 -0300 Subject: [PATCH] Fix server mixin --- ...erNetworkIOChInit.java => MixinServerNetworkIoChInit.java} | 4 ++-- src/main/resources/mixins.viafabric.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/java/com/github/creeper123123321/viafabric/mixin/{MixinServerNetworkIOChInit.java => MixinServerNetworkIoChInit.java} (96%) diff --git a/src/main/java/com/github/creeper123123321/viafabric/mixin/MixinServerNetworkIOChInit.java b/src/main/java/com/github/creeper123123321/viafabric/mixin/MixinServerNetworkIoChInit.java similarity index 96% rename from src/main/java/com/github/creeper123123321/viafabric/mixin/MixinServerNetworkIOChInit.java rename to src/main/java/com/github/creeper123123321/viafabric/mixin/MixinServerNetworkIoChInit.java index 245d994..736b166 100644 --- a/src/main/java/com/github/creeper123123321/viafabric/mixin/MixinServerNetworkIOChInit.java +++ b/src/main/java/com/github/creeper123123321/viafabric/mixin/MixinServerNetworkIoChInit.java @@ -37,8 +37,8 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import us.myles.ViaVersion.api.data.UserConnection; import us.myles.ViaVersion.api.protocol.ProtocolPipeline; -@Mixin(targets = "net.minecraft.server.ServerNetworkIO$1") -public class MixinServerNetworkIOChInit { +@Mixin(targets = "net.minecraft.server.ServerNetworkIo$1") +public class MixinServerNetworkIoChInit { @Inject(method = "initChannel(Lio/netty/channel/Channel;)V", at = @At(value = "TAIL"), remap = false) private void onInitChannel(Channel channel, CallbackInfo ci) { if (channel instanceof SocketChannel) { diff --git a/src/main/resources/mixins.viafabric.json b/src/main/resources/mixins.viafabric.json index 6c13530..fe3937b 100644 --- a/src/main/resources/mixins.viafabric.json +++ b/src/main/resources/mixins.viafabric.json @@ -3,7 +3,7 @@ "compatibilityLevel": "JAVA_8", "package": "com.github.creeper123123321.viafabric.mixin", "mixins": [ - "MixinServerNetworkIOChInit", + "MixinServerNetworkIoChInit", "MixinClientConnection" ], "client": [