From 36cf628191947bec44f565a859c9ee9035383b6b Mon Sep 17 00:00:00 2001 From: Kevin <92656833+kevinthegreat1@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:12:32 -0400 Subject: Update Dwarven, Crystals, and Backpack Preview (#601) --- .../java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java') diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java index f113561f..79e81ad0 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java @@ -17,14 +17,14 @@ import org.joml.Vector2i; import org.joml.Vector2ic; import java.awt.*; -import java.util.Arrays; +import java.util.List; import java.util.Map; public class CrystalsHud { private static final MinecraftClient CLIENT = MinecraftClient.getInstance(); protected static final Identifier MAP_TEXTURE = new Identifier(SkyblockerMod.NAMESPACE, "textures/gui/crystals_map.png"); private static final Identifier MAP_ICON = new Identifier("textures/map/map_icons.png"); - private static final String[] SMALL_LOCATIONS = { "Fairy Grotto", "King Yolkar", "Corleone", "Odawa", "Key Guardian" }; + private static final List SMALL_LOCATIONS = List.of("Fairy Grotto", "King Yolkar", "Corleone", "Odawa", "Key Guardian"); public static boolean visible = false; @@ -80,8 +80,8 @@ public class CrystalsHud { Vector2ic renderPos = transformLocation(waypoint.pos.getX(), waypoint.pos.getZ()); int locationSize = SkyblockerConfigManager.get().locations.dwarvenMines.crystalsHud.locationSize; - if (Arrays.asList(SMALL_LOCATIONS).contains(waypoint.name.getString())) {//if small location half the location size - locationSize = locationSize / 2; + if (SMALL_LOCATIONS.contains(waypoint.name.getString())) {//if small location half the location size + locationSize /= 2; } //fill square of size locationSize around the coordinates of the location -- cgit