This commit is contained in:
Saturn5Vfive 2022-05-14 15:09:17 -05:00
parent e2b71c8e1a
commit 24367e91c5

View file

@ -11,12 +11,16 @@ import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.network.packet.c2s.play.ButtonClickC2SPacket;
import net.minecraft.network.packet.c2s.play.ClickSlotC2SPacket;
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket;
import net.minecraft.network.packet.c2s.play.SelectMerchantTradeC2SPacket;
import net.minecraft.screen.slot.SlotActionType;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.event.EventListener;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.events.PacketEvent;
public class ErrorCrash extends Module {
@ -28,6 +32,13 @@ public class ErrorCrash extends Module {
super("ErrorCrash", "Crash by making a shit ton of errors", ModuleType.CRASH);
}
@EventListener(type=EventType.PACKET_SEND)
void real(PacketEvent event){
if(event.getPacket() instanceof PlayerMoveC2SPacket packet){
event.setCancelled(true);
}
}
@Override
public void tick() {
switch (mode.getValue()) {