diff options
author | nea <nea@nea.moe> | 2023-02-17 00:43:35 +0100 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-02-17 00:43:35 +0100 |
commit | dbf9bb7b21046bb39c8a389c0d8130b0dcff0068 (patch) | |
tree | 519e045a5a923fa50ed0076566425a167d67c160 /src | |
parent | e347661f6a1cf506294004fd1516c3ef04030b70 (diff) | |
download | SkyblockHud-Death-Defied-dbf9bb7b21046bb39c8a389c0d8130b0dcff0068.tar.gz SkyblockHud-Death-Defied-dbf9bb7b21046bb39c8a389c0d8130b0dcff0068.tar.bz2 SkyblockHud-Death-Defied-dbf9bb7b21046bb39c8a389c0d8130b0dcff0068.zip |
Handle plot locations for garden
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/location/LocationHandler.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/location/LocationHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/location/LocationHandler.java index 40d39d0..b4e63ec 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/location/LocationHandler.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/location/LocationHandler.java @@ -20,10 +20,13 @@ public class LocationHandler { currentLocation = Locations.CATACOMBS; } else { Locations locations; - if (isGuesting && location.endsWith("GARDEN")) { + boolean isPlot = location.startsWith("PLOT"); + if (isGuesting && (isPlot || location.endsWith("GARDEN"))) { locations = Locations.GUESTGARDEN; } else if (isGuesting) { locations = Locations.GUESTISLAND; + } else if (isPlot) { + locations = Locations.THEGARDEN; } else { locations = Locations.get(location); } |