diff options
author | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2024-02-03 22:59:13 -0500 |
---|---|---|
committer | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2024-02-03 22:59:13 -0500 |
commit | c7d93136da9134ed2db556e8459e40620d16c1dd (patch) | |
tree | 83f3775870b6a0f369ce6fcf252be7bded5580f8 /src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java | |
parent | 075775e2c2f8fdd01b048721b0bd2d88aefe2464 (diff) | |
download | Skyblocker-c7d93136da9134ed2db556e8459e40620d16c1dd.tar.gz Skyblocker-c7d93136da9134ed2db556e8459e40620d16c1dd.tar.bz2 Skyblocker-c7d93136da9134ed2db556e8459e40620d16c1dd.zip |
Fix final few code formatting things
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 | 12 |
1 files changed, 6 insertions, 6 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 ee6d4307..77f5fe38 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsHud.java @@ -73,11 +73,11 @@ public class CrystalsHud { //if enabled add waypoint locations to map if (SkyblockerConfigManager.get().locations.dwarvenMines.crystalsHud.showLocations) { - Map<String,CrystalsWaypoint> ActiveWaypoints= CrystalsLocationsManager.activeWaypoints; + Map<String,CrystalsWaypoint> ActiveWaypoints = CrystalsLocationsManager.activeWaypoints; for (CrystalsWaypoint waypoint : ActiveWaypoints.values()) { Color waypointColor = waypoint.category.color; - IntIntPair renderPos = transformLocation(waypoint.pos.getX(),waypoint.pos.getZ()); + IntIntPair 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 @@ -124,12 +124,12 @@ public class CrystalsHud { */ protected static IntIntPair transformLocation(double x, double z) { //converts an x and z to a location on the map - int transformedX = (int)((x - 202) / 621 * 62); - int transformedY = (int)((z - 202) / 621 * 62); + int transformedX = (int) ((x - 202) / 621 * 62); + int transformedY = (int) ((z - 202) / 621 * 62); transformedX = MathHelper.clamp(transformedX, 0, 62); transformedY = MathHelper.clamp(transformedY, 0, 62); - return IntIntPair.of(transformedX,transformedY); + return IntIntPair.of(transformedX, transformedY); } /** @@ -140,7 +140,7 @@ public class CrystalsHud { */ private static float yaw2Cardinal(float yaw) { yaw += + 180; //flip direction - byte clipped = (byte)((yaw += yaw < 0.0 ? -8.0 : 8.0) * 16.0 / 360.0); + byte clipped = (byte) ((yaw += yaw < 0.0 ? -8.0 : 8.0) * 16.0 / 360.0); return (clipped * 360f) / 16f; } |