mirror of
https://github.com/kami-blue/client
synced 2025-04-01 23:00:51 +00:00
Made packet cancel only work when ingame.
This commit is contained in:
parent
33d097dfdf
commit
4b8fb6dbba
@ -27,6 +27,9 @@ class PacketCancel : Module() {
|
||||
|
||||
@EventHandler
|
||||
private val sendListener = Listener(EventHook { event: PacketEvent.Send ->
|
||||
if (mc.player == null) {
|
||||
return@EventHook
|
||||
}
|
||||
if (all.value
|
||||
||
|
||||
packetInput.value && event.packet is CPacketInput
|
||||
|
Loading…
Reference in New Issue
Block a user