From 289bd3a2cd1a59125b7852441f4dda1118f839e9 Mon Sep 17 00:00:00 2001 From: xItsSunny Date: Mon, 20 Jan 2025 16:25:24 +0100 Subject: [PATCH] v3.0.2.1 --- src/main/java/keystrokesmod/Const.java | 6 ++---- .../impl/other/anticheats/checks/combat/AutoBlockA.java | 4 ++-- .../impl/other/anticheats/checks/combat/AutoClickerA.java | 3 ++- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/keystrokesmod/Const.java b/src/main/java/keystrokesmod/Const.java index 3883aca6..6078da75 100644 --- a/src/main/java/keystrokesmod/Const.java +++ b/src/main/java/keystrokesmod/Const.java @@ -9,10 +9,8 @@ @Unmodifiable public final class Const { public static final String NAME = "Raven XD"; - public static final String VERSION = "3.0.2"; + public static final String VERSION = "3.0.2.1"; public static final List CHANGELOG = Collections.unmodifiableList(Arrays.asList( - "[+] **Re-Add** Ability to choose Anticheat checks", - "[+] Add E-Sound Cape", - "[-] Remove Raven-XD mode from ClientSpoofer" + "-[※] **Fix** Ability to choose Anticheat checks" )); } diff --git a/src/main/java/keystrokesmod/module/impl/other/anticheats/checks/combat/AutoBlockA.java b/src/main/java/keystrokesmod/module/impl/other/anticheats/checks/combat/AutoBlockA.java index f9092617..003cd2dd 100644 --- a/src/main/java/keystrokesmod/module/impl/other/anticheats/checks/combat/AutoBlockA.java +++ b/src/main/java/keystrokesmod/module/impl/other/anticheats/checks/combat/AutoBlockA.java @@ -1,6 +1,7 @@ package keystrokesmod.module.impl.other.anticheats.checks.combat; import keystrokesmod.event.network.ReceivePacketEvent; +import keystrokesmod.eventbus.annotations.EventListener; import keystrokesmod.module.impl.other.Anticheat; import keystrokesmod.module.impl.other.anticheats.Check; import keystrokesmod.module.impl.other.anticheats.TRPlayer; @@ -9,7 +10,6 @@ import keystrokesmod.utility.Utils; import net.minecraft.network.play.server.S0BPacketAnimation; import net.minecraft.network.play.server.S14PacketEntity; -import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import org.jetbrains.annotations.NotNull; import static keystrokesmod.Client.mc; @@ -21,7 +21,7 @@ public AutoBlockA(@NotNull TRPlayer player) { super("AutoBlockA", player); } - @SubscribeEvent + @EventListener public void onReceivePacket(@NotNull ReceivePacketEvent event) { if (event.getPacket() instanceof S0BPacketAnimation) { if (((S0BPacketAnimation) event.getPacket()).getEntityID() == player.fabricPlayer.getEntityId()) { diff --git a/src/main/java/keystrokesmod/module/impl/other/anticheats/checks/combat/AutoClickerA.java b/src/main/java/keystrokesmod/module/impl/other/anticheats/checks/combat/AutoClickerA.java index a2eba93a..d4d238d0 100644 --- a/src/main/java/keystrokesmod/module/impl/other/anticheats/checks/combat/AutoClickerA.java +++ b/src/main/java/keystrokesmod/module/impl/other/anticheats/checks/combat/AutoClickerA.java @@ -2,6 +2,7 @@ import it.unimi.dsi.fastutil.longs.LongArrayFIFOQueue; import keystrokesmod.event.network.ReceivePacketEvent; +import keystrokesmod.eventbus.annotations.EventListener; import keystrokesmod.module.impl.other.Anticheat; import keystrokesmod.module.impl.other.anticheats.Check; import keystrokesmod.module.impl.other.anticheats.TRPlayer; @@ -16,7 +17,7 @@ public AutoClickerA(@NotNull TRPlayer player) { super("AutoClickerA", player); } - @SubscribeEvent + @EventListener public void onReceivePacket(@NotNull ReceivePacketEvent event) { if (event.getPacket() instanceof S0BPacketAnimation) { if (((S0BPacketAnimation) event.getPacket()).getEntityID() == player.fabricPlayer.getEntityId()) {