1
0
mirror of https://github.com/kami-blue/client synced 2025-04-06 17:43:11 +00:00

Fixed antibookkick and close #870

This commit is contained in:
Dominika 2020-05-25 16:28:09 -04:00
parent ac32f946bc
commit a759b25552
No known key found for this signature in database
GPG Key ID: B4A5A6DCA70F861F

View File

@ -24,7 +24,7 @@ import static me.zeroeightsix.kami.util.MessageSendHelper.sendWarningMessage;
) )
public class AntiBookKick extends Module { public class AntiBookKick extends Module {
@EventHandler @EventHandler
public Listener<PacketEvent.Receive> listener = new Listener<>(event -> { public Listener<PacketEvent.PostSend> listener = new Listener<>(event -> {
if (!(event.getPacket() instanceof CPacketClickWindow)) return; if (!(event.getPacket() instanceof CPacketClickWindow)) return;
final CPacketClickWindow packet = (CPacketClickWindow) event.getPacket(); final CPacketClickWindow packet = (CPacketClickWindow) event.getPacket();