Skip to content

Commit

Permalink
Added ignoreSelf to tracers (MeteorDevelopment#3913)
Browse files Browse the repository at this point in the history
Co-authored-by: thebest9178 <[email protected]>
  • Loading branch information
thebest9178 and thebest9178 committed Aug 18, 2023
1 parent 8d2e3bb commit fc42b6a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ public enum TracerStyle {
.build()
);

private final Setting<Boolean> 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<Boolean> ignoreFriends = sgGeneral.add(new BoolSetting.Builder()
.name("ignore-friends")
.description("Doesn't draw tracers to friends.")
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit fc42b6a

Please sign in to comment.