Skip to content

Commit

Permalink
Only show visible waypoints on minimap, fix width of waypoint icon
Browse files Browse the repository at this point in the history
  • Loading branch information
juliarn committed Jan 29, 2024
1 parent 0030979 commit b4db59a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ labyMod {
"1.19.2",
"1.19.3",
"1.19.4",
"1.20.1"
"1.20.2",
"1.20.4"
) { version, provider ->
configureRun(provider, version)
}
Expand All @@ -45,7 +46,7 @@ labyMod {
}

addonDev {
snapshotRelease()
productionRelease()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void renderWaypoints(MinimapRenderEvent event) {
return;
}

Collection<Waypoint> waypoints = Waypoints.getReferences().waypointService().getAllWaypoints();
Collection<Waypoint> waypoints = Waypoints.getReferences().waypointService().getVisibleWaypoints();
if (waypoints.isEmpty()) {
return;
}
Expand Down Expand Up @@ -109,8 +109,9 @@ public void renderWaypoints(MinimapRenderEvent event) {

WaypointTextures.MARKER_ICON.render(
stack,
-4F,
-2.25F,
-8F,
4.5F,
8F,
false,
waypoint.color().get()
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rootProject.name = "minimap"

pluginManagement {
val labyGradlePluginVersion = "0.3.25"
val labyGradlePluginVersion = "0.3.44"
plugins {
id("net.labymod.gradle") version (labyGradlePluginVersion)
}
Expand Down

0 comments on commit b4db59a

Please sign in to comment.