Skip to content

Commit 7870caa

Browse files
committed
Fixed BedESP and SignESP
1 parent d8d8845 commit 7870caa

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import net.wurstclient.events.UpdateListener;
2828
import net.wurstclient.hack.Hack;
2929
import net.wurstclient.hacks.bedesp.BedEspBlockGroup;
30-
import net.wurstclient.settings.CheckboxSetting;
30+
// checkbox setting not needed here (stickyArea uses fully-qualified name)
3131
import net.wurstclient.settings.ChunkAreaSetting;
3232
import net.wurstclient.settings.ColorSetting;
3333
import net.wurstclient.settings.EspStyleSetting;
@@ -47,10 +47,8 @@ public final class BedEspHack extends Hack implements UpdateListener,
4747
false);
4848

4949
private final BedEspBlockGroup beds =
50-
new BedEspBlockGroup(
51-
new ColorSetting("Bed color",
52-
"Beds will be highlighted in this color.", new Color(0xFF69B4)),
53-
new CheckboxSetting("Include beds", true));
50+
new BedEspBlockGroup(new ColorSetting("Bed color",
51+
"Beds will be highlighted in this color.", new Color(0xFF69B4)));
5452

5553
private final List<BedEspBlockGroup> groups = Arrays.asList(beds);
5654

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,22 @@ public final class SignEspHack extends Hack implements UpdateListener,
5151
"Off: Re-centers every chunk to match ESP drop-off.\n"
5252
+ "On: Keeps results anchored so you can path back to them.",
5353
false);
54-
private final SignEspGroup signs = new SignEspGroup(
55-
new ColorSetting("Sign color",
56-
"Signs will be highlighted in this color.", Color.ORANGE),
57-
new CheckboxSetting("Include signs", true));
54+
// Signs are always included; frame inclusion is controlled by a single
55+
// checkbox that used to be named "Include signs" in the UI per request.
56+
private final SignEspGroup signs =
57+
new SignEspGroup(
58+
new ColorSetting("Sign color",
59+
"Signs will be highlighted in this color.", Color.ORANGE),
60+
null);
5861
private final List<SignEspGroup> groups = Arrays.asList(signs);
59-
// New: Frames (incl. glow) toggle/group
62+
// Frames (incl. glow) toggle/group - controlled by a single checkbox
63+
// labeled "Include frames".
64+
private final CheckboxSetting framesEnabled =
65+
new CheckboxSetting("Include frames", false);
6066
private final FrameEspEntityGroup frames =
6167
new FrameEspEntityGroup(new ColorSetting("Frame color",
6268
"Item frames (including glow frames) will be highlighted in this color.",
63-
Color.YELLOW), new CheckboxSetting("Include frames", false));
69+
Color.YELLOW), framesEnabled);
6470
private final List<FrameEspEntityGroup> entityGroups =
6571
Arrays.asList(frames);
6672
private final ChunkAreaSetting area = new ChunkAreaSetting("Area",

src/main/java/net/wurstclient/hacks/bedesp/BedEspBlockGroup.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ public final class BedEspBlockGroup
2929
{
3030
private final ArrayList<Box> boxes = new ArrayList<>();
3131
private final ColorSetting color;
32-
private final CheckboxSetting enabled;
32+
private final CheckboxSetting enabled = null;
3333

34-
public BedEspBlockGroup(ColorSetting color, CheckboxSetting enabled)
34+
public BedEspBlockGroup(ColorSetting color)
3535
{
3636
this.color = Objects.requireNonNull(color);
37-
this.enabled = enabled;
3837
}
3938

4039
public void add(Result result)

0 commit comments

Comments
 (0)