aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/location/IslandHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/location/IslandHandler.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/location/IslandHandler.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/location/IslandHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/location/IslandHandler.java
index d16a3ac..2e2fae1 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/location/IslandHandler.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/location/IslandHandler.java
@@ -28,10 +28,7 @@ public class IslandHandler {
}
public static boolean checkFlightDuration(String formatedScoreboardLine) {
- if (
- LocationHandler.getCurrentLocation() == Locations.YOURISLAND &&
- Utils.removeColor(formatedScoreboardLine.toLowerCase().trim()).contains("flight duration:")
- ) {
+ if (LocationHandler.getCurrentLocation() == Locations.YOURISLAND && Utils.removeColor(formatedScoreboardLine.toLowerCase().trim()).contains("flight duration:")) {
String timeString = formatedScoreboardLine.toLowerCase().replace("flight duration:", "").replace(" ", "");
String[] times = timeString.split(":");
if (times.length == 2) {
@@ -65,10 +62,7 @@ public class IslandHandler {
if (LocationHandler.getCurrentLocation() == Locations.YOURISLAND) {
if (formatedScoreboardLine.toLowerCase().contains("redstone:")) return true;
try {
- redstone =
- formatedScoreboardLine.toLowerCase().contains("redstone:")
- ? Integer.parseInt(Utils.removeWhiteSpaceAndRemoveWord(formatedScoreboardLine, "redstone:"))
- : 0;
+ redstone = formatedScoreboardLine.toLowerCase().contains("redstone:") ? Integer.parseInt(Utils.removeWhiteSpaceAndRemoveWord(formatedScoreboardLine, "redstone:")) : 0;
} catch (Exception ignored) {}
}
return false;