diff --git a/src/mixins/java/org/spongepowered/common/mixin/core/network/ConnectionMixin.java b/src/mixins/java/org/spongepowered/common/mixin/core/network/ConnectionMixin.java index a7f3d635983..e9b9c3bce00 100644 --- a/src/mixins/java/org/spongepowered/common/mixin/core/network/ConnectionMixin.java +++ b/src/mixins/java/org/spongepowered/common/mixin/core/network/ConnectionMixin.java @@ -44,6 +44,7 @@ import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import org.spongepowered.common.SpongeMinecraftVersion; import org.spongepowered.common.accessor.network.Connection_PacketHolderAccessor; import org.spongepowered.common.bridge.network.ConnectionBridge; @@ -80,6 +81,8 @@ public abstract class ConnectionMixin extends SimpleChannelInboundHandler cir) { + if (this.impl$disconnected) { + cir.setReturnValue(false); + } } }