diff --git a/src/main/java/net/shadow/client/feature/module/impl/misc/AdBlock.java b/src/main/java/net/shadow/client/feature/module/impl/misc/AdBlock.java index 4e38e18..74f55ca 100644 --- a/src/main/java/net/shadow/client/feature/module/impl/misc/AdBlock.java +++ b/src/main/java/net/shadow/client/feature/module/impl/misc/AdBlock.java @@ -23,7 +23,7 @@ public class AdBlock extends Module { } PacketEvent pe = (PacketEvent) event; if (pe.getPacket() instanceof GameMessageS2CPacket msg) { - if (msg.getMessage().getString().contains("[AD]") || msg.getMessage().getString().contains("[Minehut]") || msg.getMessage().contains("https://minecraftservers.org/vote/443456")) { + if (msg.getMessage().getString().contains("[AD]") || msg.getMessage().getString().contains("[Minehut]") || msg.getMessage().getString().contains("https://minecraftservers.org/vote/443456")) { event.setCancelled(true); blocked++; }