diff options
author | ThatGravyBoat <thatgravyboat@gmail.com> | 2021-07-17 01:26:21 -0230 |
---|---|---|
committer | ThatGravyBoat <thatgravyboat@gmail.com> | 2021-07-17 01:26:21 -0230 |
commit | e364de18cbcbc9f334d890703812876789374bab (patch) | |
tree | d9360da1aaba43d88a2637ac73d9a15bd374886a /src/main/java/com/thatgravyboat/skyblockhud/location | |
parent | 3f3a68b898930c9c33ff852e6d0d8270835c4b98 (diff) | |
download | SkyblockHud-Death-Defied-e364de18cbcbc9f334d890703812876789374bab.tar.gz SkyblockHud-Death-Defied-e364de18cbcbc9f334d890703812876789374bab.tar.bz2 SkyblockHud-Death-Defied-e364de18cbcbc9f334d890703812876789374bab.zip |
Added the ability to turn off the map for certain locations and added the ability for texture pack devs to add textures for npc dialogue
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/location')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/location/LocationCategory.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/location/LocationCategory.java b/src/main/java/com/thatgravyboat/skyblockhud/location/LocationCategory.java index cf93295..65256ac 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/location/LocationCategory.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/location/LocationCategory.java @@ -1,9 +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), @@ -44,7 +45,8 @@ public enum LocationCategory { } public MapHandler.Maps getMap() { - return this.map; + if (this.map != null && SkyblockHud.config.map.mapLocations.contains(this.ordinal() - 2)) return this.map; + else return null; } public boolean isMiningCategory() { |