From baf3b8aa15cbd2dc0fcb4a80707557c44ee30c16 Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Sat, 17 Jul 2021 03:56:58 +0000 Subject: Prettified Code! --- .../com/thatgravyboat/skyblockhud/location/LocationCategory.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/thatgravyboat/skyblockhud/location') diff --git a/src/main/java/com/thatgravyboat/skyblockhud/location/LocationCategory.java b/src/main/java/com/thatgravyboat/skyblockhud/location/LocationCategory.java index 65256ac..f54999c 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/location/LocationCategory.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/location/LocationCategory.java @@ -1,10 +1,10 @@ package com.thatgravyboat.skyblockhud.location; +import static com.thatgravyboat.skyblockhud.handlers.MapHandler.Maps; + import com.thatgravyboat.skyblockhud.SkyblockHud; import com.thatgravyboat.skyblockhud.handlers.MapHandler; -import static com.thatgravyboat.skyblockhud.handlers.MapHandler.Maps; - public enum LocationCategory { ERROR("error", 34), ISLAND("island", 43), @@ -45,8 +45,7 @@ public enum LocationCategory { } public MapHandler.Maps getMap() { - if (this.map != null && SkyblockHud.config.map.mapLocations.contains(this.ordinal() - 2)) return this.map; - else return null; + if (this.map != null && SkyblockHud.config.map.mapLocations.contains(this.ordinal() - 2)) return this.map; else return null; } public boolean isMiningCategory() { -- cgit