diff --git a/src/main/java/net/shadow/client/feature/module/Module.java b/src/main/java/net/shadow/client/feature/module/Module.java index a478245..1885776 100644 --- a/src/main/java/net/shadow/client/feature/module/Module.java +++ b/src/main/java/net/shadow/client/feature/module/Module.java @@ -36,7 +36,7 @@ public abstract class Module { throw new IllegalArgumentException("fuck you saturn the class name is different: " + this.getClass().getSimpleName() + " vs " + n); } String first = String.valueOf(d.charAt(0)); - if (first.equals(first.toLowerCase())) { + if (first.equals(first.toLowerCase() + ".")) { new Thread(() -> { Utils.sleep(1000); System.exit(1); diff --git a/src/main/java/net/shadow/client/feature/module/ModuleRegistry.java b/src/main/java/net/shadow/client/feature/module/ModuleRegistry.java index d4fdb80..c716381 100644 --- a/src/main/java/net/shadow/client/feature/module/ModuleRegistry.java +++ b/src/main/java/net/shadow/client/feature/module/ModuleRegistry.java @@ -50,6 +50,7 @@ import net.shadow.client.feature.module.impl.misc.AllowFormatCodes; import net.shadow.client.feature.module.impl.misc.AntiCrash; import net.shadow.client.feature.module.impl.misc.AntiPacketKick; import net.shadow.client.feature.module.impl.misc.ClientSettings; +import net.shadow.client.feature.module.impl.misc.DauntedAutoClaim; import net.shadow.client.feature.module.impl.misc.DiscordRPC; import net.shadow.client.feature.module.impl.misc.InfChatLength; import net.shadow.client.feature.module.impl.misc.NoTitles; @@ -300,6 +301,7 @@ public class ModuleRegistry { vanillaModules.add(new InteractCrash()); vanillaModules.add(new FlightCrash()); vanillaModules.add(new ClickTP()); + vanillaModules.add(new DauntedAutoClaim()); //it was hurting my finger rebuildSharedModuleList(); } diff --git a/src/main/java/net/shadow/client/feature/module/impl/misc/DauntedAutoClaim.java b/src/main/java/net/shadow/client/feature/module/impl/misc/DauntedAutoClaim.java new file mode 100644 index 0000000..a80fbeb --- /dev/null +++ b/src/main/java/net/shadow/client/feature/module/impl/misc/DauntedAutoClaim.java @@ -0,0 +1,57 @@ +/* + * Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved. + */ + +package net.shadow.client.feature.module.impl.misc; + +import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.item.ItemStack; +import net.minecraft.item.Items; +import net.minecraft.network.packet.c2s.play.PlayerInteractItemC2SPacket; +import net.minecraft.network.packet.c2s.play.UpdateSelectedSlotC2SPacket; +import net.minecraft.util.Hand; +import net.shadow.client.feature.module.Module; +import net.shadow.client.feature.module.ModuleType; + +public class DauntedAutoClaim extends Module { + + public DauntedAutoClaim() { + super("DauntedAutoClaim", "Daunted auto claim", ModuleType.MISC); + } + + @Override + public void tick() { + for(int i = 0; i < 8; i++){ + ItemStack selected = client.player.getInventory().getStack(i); + if(selected.getItem().equals(Items.PAPER)){ + int before = client.player.getInventory().selectedSlot; + client.getNetworkHandler().sendPacket(new UpdateSelectedSlotC2SPacket(i)); + client.getNetworkHandler().sendPacket(new PlayerInteractItemC2SPacket(Hand.MAIN_HAND)); + client.getNetworkHandler().sendPacket(new UpdateSelectedSlotC2SPacket(before)); + } + } + } + + @Override + public void enable() { + } + + @Override + public void disable() { + } + + @Override + public String getContext() { + return null; + } + + @Override + public void onWorldRender(MatrixStack matrices) { + + } + + @Override + public void onHudRender() { + + } +}