Skip to content

Commit

Permalink
Hide notes that have no "name" (most likely they are waypoints)
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktor-obrebski committed Sep 4, 2024
1 parent 02e1933 commit 37fcaa1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion notes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ function NotesOverlay:reloadVisibleNotes()
}

for _, map_point in ipairs(map_points) do
if viewport:isVisible(map_point.pos) then
if (viewport:isVisible(map_point.pos)
and map_point.name ~= nil and #map_point.name > 0)
then
local screen_pos = viewport:tileToScreen(map_point.pos)
table.insert(self.visible_notes, {
point=map_point,
Expand Down

0 comments on commit 37fcaa1

Please sign in to comment.