Skip to content

Commit 76e38ad

Browse files
committed
Fixed NiceWurst
1 parent 2fa6c3d commit 76e38ad

File tree

4 files changed

+27
-9
lines changed

4 files changed

+27
-9
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ Build without the flag to get the full CevAPI experience; build with the flag fo
160160
### Antisocial
161161
- Hooks into the PlayerESP enter/leave detector (even if ESP itself is off) and logs out the instant someone walks into range.
162162
- Reuses AutoLeave's Quit/Chars/SelfHurt modes so you can pick the safest disconnect for your server.
163-
- Perfect for hiding or protecting yourself while AFK farming—optionally toggles AutoReconnect off so you stay gone.
163+
- Toggles AutoReconnect off so you stay gone.
164+
- Perfect for hiding or protecting yourself while AFK farming
164165

165166
### Anti-Fingerprint
166167
- Detects and stops resource-pack fingerprinting.
@@ -209,7 +210,8 @@ Build without the flag to get the full CevAPI experience; build with the flag fo
209210
### AutoMace
210211
- Auto changes to mace and attacks when falling on a target
211212
- Has various settings such as minimum fall distance, switch delay, attack delay and filters
212-
- Novel design where it implements a toggleable modified AimAssist setting whilst falling to aim for the top of the targets head when falling
213+
- Novel design where it implements a toggleable modified AimAssist setting whilst falling
214+
- Adds toggleable MaceDMG hack on impact
213215

214216
### WindChargeKey
215217
- Bind switching then throwing a wind charge to a key

src/main/java/net/wurstclient/hacks/AntisocialHack.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public final class AntisocialHack extends Hack
4949
public AntisocialHack()
5050
{
5151
super("Antisocial");
52-
setCategory(Category.COMBAT);
52+
setCategory(Category.OTHER);
5353
addSetting(mode);
5454
addSetting(disableAutoReconnect);
5555
addSetting(ignoreNpcs);

src/main/java/net/wurstclient/mixin/EntityMixin.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import net.wurstclient.event.EventManager;
2828
import net.wurstclient.events.VelocityFromEntityCollisionListener.VelocityFromEntityCollisionEvent;
2929
import net.wurstclient.events.VelocityFromFluidListener.VelocityFromFluidEvent;
30+
import net.wurstclient.nicewurst.NiceWurstModule;
3031

3132
@Mixin(Entity.class)
3233
public abstract class EntityMixin implements Nameable, EntityLike, CommandOutput
@@ -111,14 +112,17 @@ private Integer getEspGlowColor(LivingEntity living)
111112
{
112113
var hax = WurstClient.INSTANCE.getHax();
113114

114-
Integer color = hax.playerEspHack.getGlowColor(living);
115+
Integer color = NiceWurstModule.filterGlowColor(living,
116+
hax.playerEspHack.getGlowColor(living));
115117
if(color != null)
116118
return color;
117119

118-
color = hax.mobSearchHack.getGlowColor(living);
120+
color = NiceWurstModule.filterGlowColor(living,
121+
hax.mobSearchHack.getGlowColor(living));
119122
if(color != null)
120123
return color;
121124

122-
return hax.mobEspHack.getGlowColor(living);
125+
return NiceWurstModule.filterGlowColor(living,
126+
hax.mobEspHack.getGlowColor(living));
123127
}
124128
}

src/main/java/net/wurstclient/nicewurst/NiceWurstModule.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import net.minecraft.client.render.Camera;
2222
import net.minecraft.client.render.RenderLayer;
23+
import net.minecraft.entity.LivingEntity;
2324
import net.minecraft.util.hit.BlockHitResult;
2425
import net.minecraft.util.hit.HitResult;
2526
import net.minecraft.util.math.BlockPos;
@@ -89,9 +90,9 @@ public final class NiceWurstModule
8990
"Waypoints"));
9091

9192
ALLOWED_HACKS.put(Category.OTHER,
92-
Set.of("AntiAFK", "AutoFish", "AutoLibrarian", "AutoReconnect",
93-
"CheatDetector", "ClickGUI", "FeedAura", "Navigator", "Panic",
94-
"PortalGUI", "SafeTP", "TooManyHax"));
93+
Set.of("AntiAFK", "Antisocial", "AutoFish", "AutoLibrarian",
94+
"AutoReconnect", "CheatDetector", "ClickGUI", "FeedAura",
95+
"Navigator", "Panic", "PortalGUI", "SafeTP", "TooManyHax"));
9596

9697
ALLOWED_HACKS.put(Category.ITEMS,
9798
Set.of("AntiDrop", "AutoDisenchant", "AutoDrop", "AutoEat",
@@ -239,6 +240,17 @@ public static boolean shouldRenderTarget(Vec3d target)
239240
return hitDistSq >= targetDistSq - 1e-3;
240241
}
241242

243+
public static Integer filterGlowColor(LivingEntity entity, Integer color)
244+
{
245+
if(color == null || !isActive())
246+
return color;
247+
if(entity == null)
248+
return color;
249+
250+
Vec3d target = entity.getBoundingBox().getCenter();
251+
return shouldRenderTarget(target) ? color : null;
252+
}
253+
242254
public static boolean shouldOverlayEntityShapes()
243255
{
244256
return isActive() && isEntityOverlayCall();

0 commit comments

Comments
 (0)