diff options
author | HiZe_ <superhize@hotmail.com> | 2023-12-08 17:47:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 17:47:30 +0100 |
commit | 96d5748a5300edc133bc52240001f753485bd8c3 (patch) | |
tree | 839945dddffad2aeed718a94fd457c9c53dbcf8a /src | |
parent | 45cbc37ab637a11654dcb89b17a0955caa89a973 (diff) | |
download | skyhanni-96d5748a5300edc133bc52240001f753485bd8c3.tar.gz skyhanni-96d5748a5300edc133bc52240001f753485bd8c3.tar.bz2 skyhanni-96d5748a5300edc133bc52240001f753485bd8c3.zip |
check if player is in garden to render plot border (#776)
Fixed showing sprayanator plot grid overlay outside garden. #776
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayFeatures.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayFeatures.kt index 04501d1f4..c51070f03 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayFeatures.kt @@ -3,6 +3,7 @@ package at.hannibal2.skyhanni.features.garden.pests import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent +import at.hannibal2.skyhanni.features.garden.GardenAPI import at.hannibal2.skyhanni.features.garden.GardenPlotAPI import at.hannibal2.skyhanni.features.garden.GardenPlotAPI.renderPlot import at.hannibal2.skyhanni.features.garden.pests.PestAPI.getPests @@ -66,6 +67,7 @@ class SprayFeatures { @SubscribeEvent fun onWorldRender(event: LorenzRenderWorldEvent) { + if (!GardenAPI.inGarden()) return if (!config.drawPlotsBorderWhenInHands) return if (!InventoryUtils.itemInHandId.equals("SPRAYONATOR")) return val plot = GardenPlotAPI.getCurrentPlot() ?: return |