From 0cd6b2b3cbd9d86672030ab01772006b3f80d8fb Mon Sep 17 00:00:00 2001 From: olim Date: Mon, 6 May 2024 12:03:24 +0100 Subject: fix formatting and add better colours --- .../hysky/skyblocker/skyblock/dwarven/CommissionLabels.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java') diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java index f3e8e935..24b91780 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java @@ -16,12 +16,10 @@ public class CommissionLabels { private static final Map DWARVEN_LOCATIONS = Arrays.stream(MiningLocationLabels.dwarvenCategory.values()).collect(Collectors.toMap(MiningLocationLabels.dwarvenCategory::toString, Function.identity())); private static final Map GLACITE_LOCATIONS = Arrays.stream(MiningLocationLabels.glaciteCategory.values()).collect(Collectors.toMap(MiningLocationLabels.glaciteCategory::toString, Function.identity())); - protected static List activeWaypoints = new ArrayList<>(); public static void init() { WorldRenderEvents.AFTER_TRANSLUCENT.register(CommissionLabels::render); - ClientPlayConnectionEvents.JOIN.register((_handler, _sender, _client) -> reset()); } protected static void update(List newCommissions) { @@ -35,7 +33,7 @@ public class CommissionLabels { if (commission.contains(glaciteLocation.getKey())) { MiningLocationLabels.glaciteCategory category = glaciteLocation.getValue(); for (BlockPos gemstoneLocation : category.getLocations()) { - activeWaypoints.add(new MiningLocationLabels(category, Text.of(category.getName()), gemstoneLocation)); + activeWaypoints.add(new MiningLocationLabels(category, gemstoneLocation)); } } } @@ -47,7 +45,8 @@ public class CommissionLabels { for (Map.Entry dwarvenLocation : DWARVEN_LOCATIONS.entrySet()) { if (commission.contains(dwarvenLocation.getKey())) { MiningLocationLabels.dwarvenCategory category = dwarvenLocation.getValue(); - activeWaypoints.add(new MiningLocationLabels(category, Text.of(category.getName()), category.getLocation())); + category.isTitanium = commission.contains("Titanium"); + activeWaypoints.add(new MiningLocationLabels(category, category.getLocation())); } } } @@ -60,10 +59,5 @@ public class CommissionLabels { for (MiningLocationLabels MiningLocationLabels : activeWaypoints) { MiningLocationLabels.render(context); } - - } - - private static void reset() { - } } -- cgit