diff options
author | Kevin <92656833+kevinthegreat1@users.noreply.github.com> | 2024-03-21 16:12:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 16:12:32 -0400 |
commit | 36cf628191947bec44f565a859c9ee9035383b6b (patch) | |
tree | c5cd26932b7ab29c55fd303956f9f9966924b18b /src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java | |
parent | c5d059dd5918e801ce2225e75b71a2e33ea57e1c (diff) | |
download | Skyblocker-36cf628191947bec44f565a859c9ee9035383b6b.tar.gz Skyblocker-36cf628191947bec44f565a859c9ee9035383b6b.tar.bz2 Skyblocker-36cf628191947bec44f565a859c9ee9035383b6b.zip |
Update Dwarven, Crystals, and Backpack Preview (#601)
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java | 8 |
1 files changed, 4 insertions, 4 deletions
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<String> 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 |