From a411d15e4d65f4f2776a98edb743c68d294aa9d4 Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Fri, 16 Jul 2021 00:00:31 +0000 Subject: Prettified Code! --- src/main/java/com/thatgravyboat/skyblockhud/Utils.java | 2 +- .../java/com/thatgravyboat/skyblockhud/handlers/CrystalWaypoints.java | 2 +- src/main/resources/assets/skyblockhud/data/trackers.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/com/thatgravyboat/skyblockhud/Utils.java b/src/main/java/com/thatgravyboat/skyblockhud/Utils.java index b190673..be28acc 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/Utils.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/Utils.java @@ -364,7 +364,7 @@ public class Utils { return number > numberToFormatAt - 1 ? formatter.format((double) number / 1000) + "k" : String.valueOf(number); } - public static boolean equalsIgnoreCaseAnyOf(String string, String... strings){ + public static boolean equalsIgnoreCaseAnyOf(String string, String... strings) { for (String o : strings) if (string.equalsIgnoreCase(o)) return true; return false; } diff --git a/src/main/java/com/thatgravyboat/skyblockhud/handlers/CrystalWaypoints.java b/src/main/java/com/thatgravyboat/skyblockhud/handlers/CrystalWaypoints.java index 1e63a0b..54986e0 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/handlers/CrystalWaypoints.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/handlers/CrystalWaypoints.java @@ -136,7 +136,7 @@ public class CrystalWaypoints { new TabCompleteRunnable() { @Override public List tabComplete(ICommandSender sender, String[] args, BlockPos pos) { - if (args.length == 2 && Utils.equalsIgnoreCaseAnyOf (args[0], "remove","copy", "move")) { + if (args.length == 2 && Utils.equalsIgnoreCaseAnyOf(args[0], "remove", "copy", "move")) { return getListOfStringsMatchingLastWord(args, waypoints.keySet()); } if (args.length == 1) { diff --git a/src/main/resources/assets/skyblockhud/data/trackers.json b/src/main/resources/assets/skyblockhud/data/trackers.json index 042f35d..cb95d0c 100644 --- a/src/main/resources/assets/skyblockhud/data/trackers.json +++ b/src/main/resources/assets/skyblockhud/data/trackers.json @@ -678,4 +678,4 @@ ] } ] -} \ No newline at end of file +} -- cgit