aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-24 15:55:37 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-24 15:55:37 +0100
commit6941e54613973a50a80f0101b60928e622a3d07e (patch)
tree08b27f06f1a684290b8ffeea6ae5390dfef105be /src/main/java
parentc9c4493a1b8031d6ad767b63d4375da284b08558 (diff)
downloadskyhanni-6941e54613973a50a80f0101b60928e622a3d07e.tar.gz
skyhanni-6941e54613973a50a80f0101b60928e622a3d07e.tar.bz2
skyhanni-6941e54613973a50a80f0101b60928e622a3d07e.zip
Draw Plot Border change: Pest Finder now always renders over Spray Selector or Garden Plot Border.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestFinder.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestFinder.kt
index 1206a70a2..47ddfd5c2 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestFinder.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestFinder.kt
@@ -31,6 +31,7 @@ import at.hannibal2.skyhanni.utils.StringUtils
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.renderables.Renderable
import net.minecraft.client.Minecraft
+import net.minecraftforge.fml.common.eventhandler.EventPriority
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import kotlin.time.Duration.Companion.seconds
@@ -178,7 +179,8 @@ class PestFinder {
private fun getPlotsWithPests() = GardenPlotAPI.plots.filter { it.pests > 0 }
- @SubscribeEvent
+ // priority to low so that this happens after other renderPlot calls.
+ @SubscribeEvent(priority = EventPriority.LOW)
fun onRenderWorld(event: LorenzRenderWorldEvent) {
if (!isEnabled()) return
if (!config.showPlotInWorld) return