diff options
author | HiZe <super@hize.be> | 2024-05-01 20:13:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 20:13:40 +0200 |
commit | 9b9d1ebfd29e361f96289243c4cd453ed2821f07 (patch) | |
tree | 1f2dc985267a4a8a799102c6bd15d8e752c8b496 /src/main/java/at/hannibal2/skyhanni/features | |
parent | 9af69225127767c83a8cdbfb6581c0ad9ef3125d (diff) | |
download | skyhanni-9b9d1ebfd29e361f96289243c4cd453ed2821f07.tar.gz skyhanni-9b9d1ebfd29e361f96289243c4cd453ed2821f07.tar.bz2 skyhanni-9b9d1ebfd29e361f96289243c4cd453ed2821f07.zip |
Fix: Visitor's Logbook stats display (#1635)
Co-authored-by: superhize <superhize@gmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/inventory/LogBookStats.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/LogBookStats.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/LogBookStats.kt index 767ed6d33..019eea299 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/LogBookStats.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/inventory/LogBookStats.kt @@ -1,5 +1,6 @@ package at.hannibal2.skyhanni.features.garden.inventory +import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.InventoryCloseEvent import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent @@ -7,6 +8,7 @@ import at.hannibal2.skyhanni.events.ProfileJoinEvent import at.hannibal2.skyhanni.features.garden.GardenAPI import at.hannibal2.skyhanni.features.garden.visitor.VisitorAPI import at.hannibal2.skyhanni.utils.ItemUtils.getLore +import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators import at.hannibal2.skyhanni.utils.NumberUtil.formatLong import at.hannibal2.skyhanni.utils.RenderUtils.renderRenderables @@ -40,6 +42,7 @@ class LogBookStats { @SubscribeEvent fun onInventoryOpen(event: InventoryFullyOpenedEvent) { + if (IslandType.GARDEN_GUEST.isInIsland()) return val inventoryName = event.inventoryName if (inventoryName != "Visitor's Logbook") return @@ -76,6 +79,7 @@ class LogBookStats { @SubscribeEvent fun onBackgroundDraw(event: GuiRenderEvent.ChestGuiOverlayRenderEvent) { + if (IslandType.GARDEN_GUEST.isInIsland()) return if (inInventory && config.showLogBookStats) { config.logBookStatsPos.renderRenderables( display, |