|
20 | 20 |
|
21 | 21 | import net.minecraft.client.render.Camera; |
22 | 22 | import net.minecraft.client.render.RenderLayer; |
| 23 | +import net.minecraft.entity.LivingEntity; |
23 | 24 | import net.minecraft.util.hit.BlockHitResult; |
24 | 25 | import net.minecraft.util.hit.HitResult; |
25 | 26 | import net.minecraft.util.math.BlockPos; |
@@ -89,9 +90,9 @@ public final class NiceWurstModule |
89 | 90 | "Waypoints")); |
90 | 91 |
|
91 | 92 | 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")); |
95 | 96 |
|
96 | 97 | ALLOWED_HACKS.put(Category.ITEMS, |
97 | 98 | Set.of("AntiDrop", "AutoDisenchant", "AutoDrop", "AutoEat", |
@@ -239,6 +240,17 @@ public static boolean shouldRenderTarget(Vec3d target) |
239 | 240 | return hitDistSq >= targetDistSq - 1e-3; |
240 | 241 | } |
241 | 242 |
|
| 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 | + |
242 | 254 | public static boolean shouldOverlayEntityShapes() |
243 | 255 | { |
244 | 256 | return isActive() && isEntityOverlayCall(); |
|
0 commit comments