blob: 57511d618645246155a1f266948a5c244b57e82e (
plain)
1
2
3
4
5
6
7
8
9
|
package at.hannibal2.skyhanni.mixinhooks
import at.hannibal2.skyhanni.events.PacketEvent
import net.minecraft.network.Packet
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo
fun onSendPacket(packet: Packet<*>, ci: CallbackInfo) {
if (PacketEvent.SendEvent(packet).postAndCatch()) ci.cancel()
}
|