Made packet cancel only work when ingame.

This commit is contained in:
willem 2020-05-15 16:18:40 +02:00
parent 33d097dfdf
commit 4b8fb6dbba
1 changed files with 3 additions and 0 deletions

View File

@ -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