Skip to content

Commit

Permalink
Merge MobEspFilterList back into MobEspHack
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Oct 18, 2023
1 parent dd847ee commit a17ac45
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 50 deletions.
25 changes: 23 additions & 2 deletions src/main/java/net/wurstclient/hacks/MobEspHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import net.wurstclient.settings.EspBoxSizeSetting;
import net.wurstclient.settings.EspStyleSetting;
import net.wurstclient.settings.filterlists.EntityFilterList;
import net.wurstclient.settings.filterlists.MobEspFilterList;
import net.wurstclient.settings.filters.*;
import net.wurstclient.util.EntityUtils;
import net.wurstclient.util.RegionPos;
import net.wurstclient.util.RenderUtils;
Expand All @@ -55,7 +55,28 @@ public final class MobEspHack extends Hack implements UpdateListener,
"\u00a7lAccurate\u00a7r mode shows the exact hitbox of each mob.\n"
+ "\u00a7lFancy\u00a7r mode shows slightly larger boxes that look better.");

private final EntityFilterList entityFilters = MobEspFilterList.create();
private final EntityFilterList entityFilters =
new EntityFilterList(FilterHostileSetting.genericVision(false),
FilterNeutralSetting
.genericVision(AttackDetectingEntityFilter.Mode.OFF),
FilterPassiveSetting.genericVision(false),
FilterPassiveWaterSetting.genericVision(false),
FilterBatsSetting.genericVision(false),
FilterSlimesSetting.genericVision(false),
FilterPetsSetting.genericVision(false),
FilterVillagersSetting.genericVision(false),
FilterZombieVillagersSetting.genericVision(false),
FilterGolemsSetting.genericVision(false),
FilterPiglinsSetting
.genericVision(AttackDetectingEntityFilter.Mode.OFF),
FilterZombiePiglinsSetting
.genericVision(AttackDetectingEntityFilter.Mode.OFF),
FilterEndermenSetting
.genericVision(AttackDetectingEntityFilter.Mode.OFF),
FilterShulkersSetting.genericVision(false),
FilterAllaysSetting.genericVision(false),
FilterInvisibleSetting.genericVision(false),
FilterArmorStandsSetting.genericVision(true));

private final ArrayList<LivingEntity> mobs = new ArrayList<>();
private VertexBuffer mobBox;
Expand Down

This file was deleted.

0 comments on commit a17ac45

Please sign in to comment.