mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-12 10:14:00 +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.data.UserConnection;
|
||||||
import us.myles.ViaVersion.api.protocol.ProtocolPipeline;
|
import us.myles.ViaVersion.api.protocol.ProtocolPipeline;
|
||||||
|
|
||||||
@Mixin(targets = "net.minecraft.server.ServerNetworkIO$1")
|
@Mixin(targets = "net.minecraft.server.ServerNetworkIo$1")
|
||||||
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) {
|
||||||
if (channel instanceof SocketChannel) {
|
if (channel instanceof SocketChannel) {
|
@ -3,7 +3,7 @@
|
|||||||
"compatibilityLevel": "JAVA_8",
|
"compatibilityLevel": "JAVA_8",
|
||||||
"package": "com.github.creeper123123321.viafabric.mixin",
|
"package": "com.github.creeper123123321.viafabric.mixin",
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"MixinServerNetworkIOChInit",
|
"MixinServerNetworkIoChInit",
|
||||||
"MixinClientConnection"
|
"MixinClientConnection"
|
||||||
],
|
],
|
||||||
"client": [
|
"client": [
|
||||||
|
Loading…
Reference in New Issue
Block a user