From 5f55ca2d9a0e8dbf7ffcb2c6cdd48e0186af8e76 Mon Sep 17 00:00:00 2001 From: RogueLogix Date: Thu, 29 Feb 2024 12:20:47 -0800 Subject: [PATCH] lower priority of automated testing event listener --- .../java/net/roguelogix/quartz/testing/AutomaticTesting.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/net/roguelogix/quartz/testing/AutomaticTesting.java b/src/test/java/net/roguelogix/quartz/testing/AutomaticTesting.java index c313252..8db34ff 100644 --- a/src/test/java/net/roguelogix/quartz/testing/AutomaticTesting.java +++ b/src/test/java/net/roguelogix/quartz/testing/AutomaticTesting.java @@ -19,6 +19,7 @@ import net.minecraft.world.level.levelgen.WorldOptions; import net.minecraft.world.level.levelgen.flat.FlatLevelGeneratorSettings; import net.minecraft.world.level.levelgen.presets.WorldPresets; +import net.neoforged.bus.api.EventPriority; import net.neoforged.neoforge.client.event.ClientPlayerNetworkEvent; import net.neoforged.neoforge.client.event.ScreenEvent; import net.neoforged.neoforge.common.NeoForge; @@ -39,7 +40,7 @@ private static void onModLoad() { } NeoForge.EVENT_BUS.addListener(AutomaticTesting::onStartupEvent); NeoForge.EVENT_BUS.addListener(AutomaticTesting::onLogin); - Quartz.EVENT_BUS.addListener(AutomaticTesting::onTestingStatus); + Quartz.EVENT_BUS.addListener(EventPriority.LOWEST, AutomaticTesting::onTestingStatus); } private static boolean recursing = false;