Further tweaks to map hook refactoring

This commit is contained in:
William278 committed 2023-03-22 12:18:34 +00:00
1 parent 98fa779046
commit 4e798a42e8
13 files changed
+50 -24

No files matched your search

@@ -36,8 +36,8 @@ public class BlueMapHook extends MapHook {
for (World world : plugin.getWorlds()) {
getMapWorld(world).ifPresent(mapWorld -> {
final MarkerSet publicHomeMarkers = MarkerSet.builder().label("Public Homes").build();
final MarkerSet warpsMarkers = MarkerSet.builder().label("Warps").build();
final MarkerSet publicHomeMarkers = MarkerSet.builder().label(getPublicHomesMarkerSetName()).build();
final MarkerSet warpsMarkers = MarkerSet.builder().label(getWarpsMarkerSetName()).build();
for (BlueMapMap map : mapWorld.getMaps()) {
map.getMarkerSets().put(plugin.getKey(map.getId()).toString(), publicHomeMarkers);