This commit is contained in:
Saturn5Vfive 2022-04-17 13:25:10 -05:00
parent 114702b5fc
commit 1d17b36d1c
3 changed files with 60 additions and 1 deletions

View file

@ -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);

View file

@ -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();
}

View file

@ -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() {
}
}