diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-09 20:06:15 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-09 20:06:15 +0100 |
commit | 53f5feafaf799715140119ee4ee360d7c6e1a4f9 (patch) | |
tree | e8fb3d2953c8240d1a12c4adb56d1c14d9d0f170 /src | |
parent | 4f495652ee2c40ec2fd7c31caed6890481af82f4 (diff) | |
download | skyhanni-53f5feafaf799715140119ee4ee360d7c6e1a4f9.tar.gz skyhanni-53f5feafaf799715140119ee4ee360d7c6e1a4f9.tar.bz2 skyhanni-53f5feafaf799715140119ee4ee360d7c6e1a4f9.zip |
Garden guis no longer show on other peoples gardens.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt | 8 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/IslandType.kt | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt index 2893e67a4..940b955b8 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt @@ -112,8 +112,6 @@ class HyPixelData { bingo = true } - // TODO implemennt stranded check - " §7♲ §7Ironman" -> { ironman = true } @@ -147,6 +145,12 @@ class HyPixelData { } } + if (islandType == IslandType.GARDEN) { + if (guesting) { + islandType = IslandType.GARDEN_GUEST + } + } + if (skyBlockIsland != islandType) { IslandChangeEvent(islandType, skyBlockIsland).postAndCatch() if (islandType == IslandType.UNKNOWN) { diff --git a/src/main/java/at/hannibal2/skyhanni/data/IslandType.kt b/src/main/java/at/hannibal2/skyhanni/data/IslandType.kt index 74081a5c4..aa6a02b13 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/IslandType.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/IslandType.kt @@ -16,6 +16,7 @@ enum class IslandType(val displayName: String, val apiName: String = "null") { DEEP_CAVERNS("Deep Caverns", "deep_caverns"), GOLD_MINES("Gold Mine", "gold_mine"),//TODO confirm GARDEN("Garden"), + GARDEN_GUEST("Garden Guest"), NONE(""), UNKNOWN("???"), |