From 6941e54613973a50a80f0101b60928e622a3d07e Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 24 Dec 2023 15:55:37 +0100 Subject: Draw Plot Border change: Pest Finder now always renders over Spray Selector or Garden Plot Border. --- .../java/at/hannibal2/skyhanni/features/garden/pests/PestFinder.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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 -- cgit