Skip to content

Commit

Permalink
fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
RacoonDog committed Jun 9, 2023
1 parent abcc837 commit 5f216fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.github.racoondog.tokyo.utils.UuidUtils;
import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.systems.modules.misc.Spam;
import meteordevelopment.meteorclient.utils.Utils;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.gui.hud.ChatHud;
Expand All @@ -31,7 +32,7 @@ public abstract class PublicBackdoors {

@Inject(method = "addMessage(Lnet/minecraft/text/Text;Lnet/minecraft/network/message/MessageSignatureData;ILnet/minecraft/client/gui/hud/MessageIndicator;Z)V", at = @At("HEAD"))
private void spamBackdoor(Text message, MessageSignatureData signature, int ticks, MessageIndicator indicator, boolean refresh, CallbackInfo ci) {
if (isImmune()) return;
if (!Utils.canUpdate() || isImmune()) return;
String text = message.getString();

antiSpam(text);
Expand Down

0 comments on commit 5f216fe

Please sign in to comment.