aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/location/FarmingIslandHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/location/FarmingIslandHandler.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/location/FarmingIslandHandler.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/location/FarmingIslandHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/location/FarmingIslandHandler.java
index 03a698b..a4abaae 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/location/FarmingIslandHandler.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/location/FarmingIslandHandler.java
@@ -1,9 +1,8 @@
package com.thatgravyboat.skyblockhud.location;
import com.thatgravyboat.skyblockhud.api.events.SidebarPostEvent;
-import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
-
import java.util.Arrays;
+import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
public class FarmingIslandHandler {
@@ -16,13 +15,13 @@ public class FarmingIslandHandler {
if (isTracking && location == Locations.NONE) {
for (int i = 0; i < event.scores.size(); i++) {
String line = event.scores.get(i);
- if (line.toLowerCase().contains("tracker mob location:") && i > 2){
+ if (line.toLowerCase().contains("tracker mob location:") && i > 2) {
location = Locations.get(event.scores.get(i - 1).toLowerCase());
break;
}
}
}
- if (!isTracking && location != Locations.NONE){
+ if (!isTracking && location != Locations.NONE) {
location = Locations.NONE;
}
}