Skip to content

Commit 3f5c946

Browse files
committed
chore: rename hideWhenNear function to reduce confusion with setting name
1 parent 6ce3d41 commit 3f5c946

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/meteordevelopment/meteorclient/systems/modules/render/WaypointsModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private void onRender2D(Render2DEvent event) {
105105
Vector3d pos = new Vector3d(blockPos.getX() + 0.5, blockPos.getY(), blockPos.getZ() + 0.5);
106106
double dist = PlayerUtils.distanceToCamera(pos.x, pos.y, pos.z);
107107

108-
waypoint.hideWhenNear((int) Math.floor(dist));
108+
waypoint.hideWhenNearCheck((int) Math.floor(dist));
109109

110110
// Continue if this waypoint should not be rendered
111111
if (dist > waypoint.maxVisible.get()) continue;

src/main/java/meteordevelopment/meteorclient/systems/waypoints/Waypoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public BlockPos getPos() {
152152
};
153153
}
154154

155-
public void hideWhenNear(int distance) {
155+
public void hideWhenNearCheck(int distance) {
156156
if (!hideWhenNear.get()) { return; }
157157
if (distance > hideWhenNearDistance.get()) { return; }
158158

0 commit comments

Comments
 (0)