Skip to content

Commit 27671a5

Browse files
committed
More Fixes for 26.2
1 parent fccdf33 commit 27671a5

33 files changed

Lines changed: 360 additions & 204 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Wurst Client v7.54 (MC26.1.2) - Modified by CevAPI
1+
# Wurst Client v7.54 (MC26.2) - Modified by CevAPI
22

33
![CevAPI Logo](https://i.imgur.com/4x8fvbp.jpeg)
44

@@ -11,7 +11,7 @@
1111
### Download
1212
Pre-compiled copies are available on the [Release Page](https://github.com/cev-api/Wurst7-CevAPI/releases).
1313

14-
I have versions for [1.21.1](https://github.com/cev-api/Wurst7-CevAPI/tree/1.21.1), [1.21.8](https://github.com/cev-api/Wurst7-CevAPI/tree/1.21.8), [1.21.10](https://github.com/cev-api/Wurst7-CevAPI/tree/1.21.10), [1.21.11](https://github.com/cev-api/Wurst7-CevAPI/tree/1.21.11) but I only update and maintain the latest; [26.1.x.](https://github.com/cev-api/Wurst7-CevAPI/tree/master)
14+
I have versions for [1.21.1](https://github.com/cev-api/Wurst7-CevAPI/tree/1.21.1), [1.21.8](https://github.com/cev-api/Wurst7-CevAPI/tree/1.21.8), [1.21.10](https://github.com/cev-api/Wurst7-CevAPI/tree/1.21.10), [1.21.11](https://github.com/cev-api/Wurst7-CevAPI/tree/1.21.11), [26.1.2](https://github.com/cev-api/Wurst7-CevAPI/tree/26.1.2) but I only update and maintain the latest; [26.2.x.](https://github.com/cev-api/Wurst7-CevAPI/tree/master)
1515

1616
Not happy with the supported versions? Download [ViaFabricPlus](https://modrinth.com/mod/viafabricplus)
1717

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ fabricApi.configureTests {
9292

9393
loom {
9494
accessWidenerPath = file("src/main/resources/wurst.accesswidener")
95+
mods {
96+
wurst {
97+
sourceSet sourceSets.main
98+
sourceSet sourceSets.gametest
99+
}
100+
}
95101

96102
runs {
97103
clientGameTest {

src/main/java/net/cevapi/config/AntiFingerprintConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public final class AntiFingerprintConfig
6060
"After sandboxing a pack, automatically extract it using Minecraft's resource-pack loader so you can inspect the contents.",
6161
false);
6262

63-
private final CheckboxSetting showMultiplayerButton =
64-
new CheckboxSetting("Show multiplayer button",
65-
"Adds a shortcut to this panel to the Multiplayer screen.", false);
63+
private final CheckboxSetting showMultiplayerButton =
64+
new CheckboxSetting("Show multiplayer button",
65+
"Adds a shortcut to this panel to the Multiplayer screen.", false);
6666

6767
private final CheckboxSetting bypassResourcePack = new CheckboxSetting(
6868
"Bypass resource pack",

src/main/java/net/wurstclient/altgui/AltGuiScreen.java

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,8 +2058,6 @@ private List<Feature> getFilteredFeatures()
20582058
: searchText.toLowerCase(Locale.ROOT).trim();
20592059
boolean globalSearch = !query.isEmpty();
20602060
ArrayList<Feature> features = new ArrayList<>();
2061-
Feature performanceOverlay =
2062-
WurstClient.INSTANCE.getOtfs().performanceOverlayOtf;
20632061
List<Feature> clientSettingsFeatures = getClientSettingsFeatures();
20642062

20652063
for(Hack hack : WurstClient.INSTANCE.getHax().getAllHax())
@@ -2092,7 +2090,7 @@ private List<Feature> getFilteredFeatures()
20922090

20932091
for(OtherFeature otf : WurstClient.INSTANCE.getOtfs().getAllOtfs())
20942092
{
2095-
if(otf == null || otf == performanceOverlay)
2093+
if(otf == null)
20962094
continue;
20972095

20982096
if(HIDDEN_OTHER_FEATURES.contains(otf.getName()))
@@ -2112,7 +2110,7 @@ private List<Feature> getFilteredFeatures()
21122110
{
21132111
if(styleCategorySelected || enabledCategorySelected)
21142112
continue;
2115-
if(!selectedCategory.equalsIgnoreCase(Category.OTHER.getName()))
2113+
if(!matchesCategory(otf, selectedCategory))
21162114
continue;
21172115
}
21182116

@@ -2122,15 +2120,6 @@ private List<Feature> getFilteredFeatures()
21222120
features.add(otf);
21232121
}
21242122

2125-
if(!styleCategorySelected && !enabledCategorySelected)
2126-
{
2127-
boolean include = globalSearch
2128-
? matchesSearch(performanceOverlay, query)
2129-
: selectedCategory.equalsIgnoreCase(Category.OTHER.getName());
2130-
if(include && !isHiddenByTooManyHax(performanceOverlay))
2131-
features.add(performanceOverlay);
2132-
}
2133-
21342123
if(globalSearch)
21352124
features.sort(buildSearchComparator(query));
21362125
else
@@ -2188,16 +2177,6 @@ private List<DisplayEntry> getUniversalSearchEntries(String query)
21882177
entries.add(new DisplayEntry(feature, false));
21892178
}
21902179

2191-
Feature performanceOverlay =
2192-
WurstClient.INSTANCE.getOtfs().performanceOverlayOtf;
2193-
if(!isHiddenByTooManyHax(performanceOverlay)
2194-
&& matchesSearch(performanceOverlay, query))
2195-
{
2196-
String key = performanceOverlay.getName().toLowerCase(Locale.ROOT);
2197-
if(added.add(key))
2198-
entries.add(new DisplayEntry(performanceOverlay, false));
2199-
}
2200-
22012180
Comparator<Feature> comparator = buildSearchComparator(query);
22022181
entries.sort(Comparator
22032182
.comparing((DisplayEntry entry) -> entry.feature(), comparator));
@@ -2303,16 +2282,16 @@ private List<Feature> getClientSettingsFeatures()
23032282
return features;
23042283
}
23052284

2306-
private boolean matchesCategory(Hack hack, String categoryName)
2285+
private boolean matchesCategory(Feature feature, String categoryName)
23072286
{
23082287
if(categoryName.equalsIgnoreCase(Category.FAVORITES.getName()))
2309-
return hack.isFavorite();
2288+
return feature instanceof Hack hack && hack.isFavorite();
23102289

2311-
String hackCategory = hack.getCategoryName();
2312-
if(hackCategory == null || hackCategory.isBlank())
2313-
hackCategory = Category.OTHER.getName();
2290+
String featureCategory = feature.getCategoryName();
2291+
if(featureCategory == null || featureCategory.isBlank())
2292+
featureCategory = Category.OTHER.getName();
23142293

2315-
return hackCategory.equalsIgnoreCase(categoryName);
2294+
return featureCategory.equalsIgnoreCase(categoryName);
23162295
}
23172296

23182297
private List<String> getDisplayCategories()

src/main/java/net/wurstclient/clickgui/ClickGui.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,8 @@ public void init()
156156
window.add(new FeatureButton(f));
157157
}
158158

159-
// Bridge selected category-less "Other Features" into Other so they
160-
// remain discoverable in the hack-style category layout.
161-
windowMap.get(net.wurstclient.Category.OTHER.getName())
162-
.add(new FeatureButton(WURST.getOtfs().performanceOverlayOtf));
163-
164-
// Keep the "Other" category usable: it contains a mixed bag of hacks,
165-
// commands and other-features, so insertion order is not meaningful.
166-
Window otherWindow =
167-
windowMap.get(net.wurstclient.Category.OTHER.getName());
168-
if(otherWindow != null)
169-
sortWindowByFeatureName(otherWindow);
159+
for(Window window : windowMap.values())
160+
sortWindowByFeatureName(window);
170161
// add favorites window entries (show favorites in the Favorites
171162
// category). Respect TooManyHax hiding behaviour here as well so
172163
// favorite hacks disabled by TooManyHax don't appear in ClickGUI.

src/main/java/net/wurstclient/commands/AutoBuildCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public AutoBuildCmd()
2323
super("autobuild",
2424
"Selects an AutoBuild template by file name and enables AutoBuild.",
2525
".autobuild <template>");
26-
setCategory(Category.BLOCKS);
26+
setCategory(Category.OTHER);
2727
}
2828

2929
@Override

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public final class AntiVoidHack extends Hack implements UpdateListener
5050
"When triggered, enable Flight instead of rubberbanding/AirWalk.",
5151
false);
5252

53-
private final CheckboxSetting autoEnableOnOutOfWorld =
54-
new CheckboxSetting("Auto-enable on out_of_world",
55-
"Automatically enables AntiVoid and rescues to the fixed void level"
56-
+ " when taking out_of_world damage.",
57-
true);
53+
private final CheckboxSetting autoEnableOnOutOfWorld =
54+
new CheckboxSetting("Auto-enable on out_of_world",
55+
"Automatically enables AntiVoid and rescues to the fixed void level"
56+
+ " when taking out_of_world damage.",
57+
true);
5858

5959
private final SliderSetting lavaBufferBlocks = new SliderSetting(
6060
"Lava buffer (blocks)", 2, 0, 12, 1, ValueDisplay.INTEGER);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public final class FreecamHack extends Hack implements UpdateListener,
9090
private final FreecamInitialPosSetting initialPos =
9191
new FreecamInitialPosSetting();
9292

93-
private final CheckboxSetting tracer = new CheckboxSetting("Tracer",
94-
"description.wurst.setting.freecam.tracer", true);
93+
private final CheckboxSetting tracer = new CheckboxSetting("Tracer",
94+
"description.wurst.setting.freecam.tracer", true);
9595

9696
private final ColorSetting color =
9797
new ColorSetting("Tracer color", Color.WHITE);

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,22 @@ public final class HandNoClipHack extends Hack
6262
"minecraft:red_shulker_box", "minecraft:shulker_box",
6363
"minecraft:trapped_chest", "minecraft:white_shulker_box",
6464
"minecraft:yellow_shulker_box");
65-
private final CheckboxSetting enableOnTarget = new CheckboxSetting(
66-
"Enable On Target",
67-
WText.literal("Only noclip while aiming at a listed block."), true);
65+
private final CheckboxSetting enableOnTarget =
66+
new CheckboxSetting("Enable On Target",
67+
WText.literal("Only noclip while aiming at a listed block."), true);
6868

69-
private final CheckboxSetting villagerThroughWalls = new CheckboxSetting(
69+
private final CheckboxSetting villagerThroughWalls = new CheckboxSetting(
7070
"Villagers Through Walls",
7171
WText.literal(
7272
"Allows interacting with villagers through walls when aiming at them."
7373
+ " Only works with Enable On Target."),
74-
true);
74+
true);
7575

76-
private final CheckboxSetting bedrockPassthrough = new CheckboxSetting(
76+
private final CheckboxSetting bedrockPassthrough = new CheckboxSetting(
7777
"Bedrock Passthrough",
7878
WText.literal("When enabled, aiming through bedrock can target"
7979
+ " blocks behind it for breaking, interacting, and placement."),
80-
true);
80+
true);
8181

8282
private BlockPos targetBlock;
8383
private boolean targetVillager;

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,24 @@
2929
@SearchTags({"health tags"})
3030
public final class HealthTagsHack extends Hack implements GUIRenderListener
3131
{
32-
private final CheckboxSetting heartsBelowName =
33-
new CheckboxSetting("Hearts below name",
34-
"Shows hearts on a second line below the nametag instead of"
35-
+ " appending a numeric value to the name.",
36-
true);
32+
private final CheckboxSetting heartsBelowName =
33+
new CheckboxSetting("Hearts below name",
34+
"Shows hearts on a second line below the nametag instead of"
35+
+ " appending a numeric value to the name.",
36+
true);
3737

3838
private final CheckboxSetting ignoreNpcs = new CheckboxSetting(
3939
"Ignore NPCs",
4040
"Hides health tags/hearts for likely NPC players (tab-list mismatch, no tab entry, or NPC-style names).",
4141
true);
4242

43-
private final CheckboxSetting showArmor = new CheckboxSetting("Show armor",
44-
"Shows total armor as HUD-style armor icons above hearts.", true);
43+
private final CheckboxSetting showArmor = new CheckboxSetting("Show armor",
44+
"Shows total armor as HUD-style armor icons above hearts.", true);
4545

46-
private final CheckboxSetting showHeldItems = new CheckboxSetting(
47-
"Show held items",
48-
"Shows main-hand/offhand item icons, durability, and potion-effect color indicators.",
49-
true);
46+
private final CheckboxSetting showHeldItems = new CheckboxSetting(
47+
"Show held items",
48+
"Shows main-hand/offhand item icons, durability, and potion-effect color indicators.",
49+
true);
5050

5151
private final EnumSetting<EntityHealthRenderer.DurabilityDisplayMode> durabilityDisplayMode =
5252
new EnumSetting<>("Held item durability mode",
@@ -60,10 +60,10 @@ public final class HealthTagsHack extends Hack implements GUIRenderListener
6060
private final SliderSetting scale = new SliderSetting("Scale",
6161
"Scales the hearts below the nametag. 100% is the original size.", 1,
6262
0.25, 3, 0.05, SliderSetting.ValueDisplay.PERCENTAGE);
63-
private final CheckboxSetting scaleWithNameTagDistance =
64-
new CheckboxSetting("Scale with nametag distance",
65-
"Makes hearts grow with distance like nametags while still applying the Scale setting.",
66-
true);
63+
private final CheckboxSetting scaleWithNameTagDistance =
64+
new CheckboxSetting("Scale with nametag distance",
65+
"Makes hearts grow with distance like nametags while still applying the Scale setting.",
66+
true);
6767

6868
private final java.util.Set<LivingEntity> entitiesToRender =
6969
java.util.Collections.newSetFromMap(new java.util.WeakHashMap<>());

0 commit comments

Comments
 (0)