From d4f80db417aee48acee6e0a4f4b5c33da41baf04 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 22 Mar 2024 20:52:38 +0100 Subject: fix error, adding chisel item category --- .../java/at/hannibal2/skyhanni/features/garden/pests/SprayDisplay.kt | 2 ++ src/main/java/at/hannibal2/skyhanni/utils/ItemCategory.kt | 1 + 2 files changed, 3 insertions(+) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayDisplay.kt index fa69ac79d..58473ca29 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayDisplay.kt @@ -13,6 +13,7 @@ import at.hannibal2.skyhanni.features.garden.GardenPlotAPI.markExpiredSprayAsNot import at.hannibal2.skyhanni.features.garden.GardenPlotAPI.name import at.hannibal2.skyhanni.features.garden.GardenPlotAPI.plots import at.hannibal2.skyhanni.utils.ChatUtils +import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.renderString import at.hannibal2.skyhanni.utils.StringUtils.createCommaSeparatedList import at.hannibal2.skyhanni.utils.TimeUtils.format @@ -44,6 +45,7 @@ class SprayDisplay { @SubscribeEvent fun onJoin(event: IslandChangeEvent) { + if (!LorenzUtils.inSkyBlock) return if (!config.expiryNotification || event.newIsland != IslandType.GARDEN) return sendExpiredPlotsToChat(true) } diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemCategory.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemCategory.kt index 4a16585f1..e0e17e064 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ItemCategory.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemCategory.kt @@ -50,6 +50,7 @@ enum class ItemCategory { MEMENTO, PORTAL, SACK, + CHISEL, NONE, ; -- cgit