mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-09 09:50:30 +01:00
Fix server mixin
This commit is contained in:
parent
23cdbaeff5
commit
0ee7bb03c3
@ -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) {
|
@ -3,7 +3,7 @@
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"package": "com.github.creeper123123321.viafabric.mixin",
|
||||
"mixins": [
|
||||
"MixinServerNetworkIOChInit",
|
||||
"MixinServerNetworkIoChInit",
|
||||
"MixinClientConnection"
|
||||
],
|
||||
"client": [
|
||||
|
Loading…
Reference in New Issue
Block a user