Skip to content

Commit

Permalink
dw
Browse files Browse the repository at this point in the history
  • Loading branch information
Aspw-w committed Jan 7, 2024
1 parent fccd8e3 commit 873c3d8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
8 changes: 8 additions & 0 deletions src/main/java/net/aspw/client/features/api/PacketManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.aspw.client.features.module.impl.combat.KillAura;
import net.aspw.client.features.module.impl.combat.TPAura;
import net.aspw.client.features.module.impl.other.ClientSpoof;
import net.aspw.client.features.module.impl.targets.*;
import net.aspw.client.features.module.impl.visual.Animations;
import net.aspw.client.features.module.impl.visual.Cape;
import net.aspw.client.protocol.ProtocolBase;
Expand Down Expand Up @@ -76,6 +77,13 @@ public static boolean shouldStopRender(Entity entity) {
@EventTarget
public void onMotion(MotionEvent event) {
mc.leftClickCounter = 0;
if (mc.thePlayer.ticksExisted % 10 == 0) {
EntityUtils.targetInvisible = Objects.requireNonNull(Client.moduleManager.getModule(Invisible.class)).getState();
EntityUtils.targetPlayer = Objects.requireNonNull(Client.moduleManager.getModule(Players.class)).getState();
EntityUtils.targetMobs = Objects.requireNonNull(Client.moduleManager.getModule(Mobs.class)).getState();
EntityUtils.targetAnimals = Objects.requireNonNull(Client.moduleManager.getModule(Animals.class)).getState();
EntityUtils.targetDead = Objects.requireNonNull(Client.moduleManager.getModule(Dead.class)).getState();
}
if (Animations.swingAnimValue.get().equals("Smooth") && event.getEventState() == EventState.PRE) {
if (mc.thePlayer.swingProgressInt == 1) {
swing = 9;
Expand Down
13 changes: 7 additions & 6 deletions src/main/java/net/aspw/client/util/EntityUtils.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package net.aspw.client.util;

import net.aspw.client.Client;
import net.aspw.client.features.module.impl.targets.*;
import net.aspw.client.features.module.impl.targets.AntiBots;
import net.aspw.client.features.module.impl.targets.AntiTeams;
import net.aspw.client.util.render.ColorUtils;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.network.NetworkPlayerInfo;
Expand Down Expand Up @@ -30,23 +31,23 @@ public final class EntityUtils extends MinecraftInstance {
/**
* The constant targetInvisible.
*/
public static boolean targetInvisible = Objects.requireNonNull(Client.moduleManager.getModule(Invisible.class)).getState();
public static boolean targetInvisible = true;
/**
* The constant targetPlayer.
*/
public static boolean targetPlayer = Objects.requireNonNull(Client.moduleManager.getModule(Players.class)).getState();
public static boolean targetPlayer = true;
/**
* The constant targetMobs.
*/
public static boolean targetMobs = Objects.requireNonNull(Client.moduleManager.getModule(Mobs.class)).getState();
public static boolean targetMobs = true;
/**
* The constant targetAnimals.
*/
public static boolean targetAnimals = Objects.requireNonNull(Client.moduleManager.getModule(Animals.class)).getState();
public static boolean targetAnimals = true;
/**
* The constant targetDead.
*/
public static boolean targetDead = Objects.requireNonNull(Client.moduleManager.getModule(Dead.class)).getState();
public static boolean targetDead = false;

/**
* Is selected boolean.
Expand Down

0 comments on commit 873c3d8

Please sign in to comment.