From ff60aef09afd4f14ff87cdc2862f8f7ea5aea8c6 Mon Sep 17 00:00:00 2001 From: thebest9178 Date: Fri, 4 Aug 2023 01:19:25 -0700 Subject: [PATCH] Added ignoreSelf --- .../meteorclient/systems/modules/render/Tracers.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Tracers.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Tracers.java index b98cfccc7b..d2c751ada8 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Tracers.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/Tracers.java @@ -52,6 +52,13 @@ public enum TracerStyle { .build() ); + private final Setting ignoreSelf = sgGeneral.add(new BoolSetting.Builder() + .name("ignore-self") + .description("Doesn't draw tracers to yourself when in third person or freecam.") + .defaultValue(false) + .build() + ); + public final Setting ignoreFriends = sgGeneral.add(new BoolSetting.Builder() .name("ignore-friends") .description("Doesn't draw tracers to friends.") @@ -211,7 +218,7 @@ public Tracers() { } private boolean shouldBeIgnored(Entity entity) { - return !PlayerUtils.isWithin(entity, maxDist.get()) || (!Modules.get().isActive(Freecam.class) && entity == mc.player) || !entities.get().contains(entity.getType()) || (ignoreFriends.get() && entity instanceof PlayerEntity && Friends.get().isFriend((PlayerEntity) entity)) || (!showInvis.get() && entity.isInvisible()) | !EntityUtils.isInRenderDistance(entity); + return !PlayerUtils.isWithin(entity, maxDist.get()) || (!Modules.get().isActive(Freecam.class) && entity == mc.player) || !entities.get().contains(entity.getType()) || (ignoreSelf.get() && entity == mc.player) || (ignoreFriends.get() && entity instanceof PlayerEntity && Friends.get().isFriend((PlayerEntity) entity)) || (!showInvis.get() && entity.isInvisible()) | !EntityUtils.isInRenderDistance(entity); } private Color getEntityColor(Entity entity) {