Fix server mixin

This commit is contained in:
creeper123123321 2019-04-16 17:18:29 -03:00
parent 23cdbaeff5
commit 0ee7bb03c3
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -3,7 +3,7 @@
"compatibilityLevel": "JAVA_8",
"package": "com.github.creeper123123321.viafabric.mixin",
"mixins": [
"MixinServerNetworkIOChInit",
"MixinServerNetworkIoChInit",
"MixinClientConnection"
],
"client": [