From a8f38589337adaa2827c1e1969a0992220e52fd7 Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Wed, 4 Oct 2023 13:55:50 +0100 Subject: [PATCH] fix: fix up forge event handler for texture stitch post https://github.com/FTBTeam/FTB-Mods-Issues/issues/967 --- .../main/java/dev/ftb/mods/ftbquests/forge/ClientSetup.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/forge/src/main/java/dev/ftb/mods/ftbquests/forge/ClientSetup.java b/forge/src/main/java/dev/ftb/mods/ftbquests/forge/ClientSetup.java index 6d1f347f..e8c634fa 100644 --- a/forge/src/main/java/dev/ftb/mods/ftbquests/forge/ClientSetup.java +++ b/forge/src/main/java/dev/ftb/mods/ftbquests/forge/ClientSetup.java @@ -3,10 +3,12 @@ import dev.ftb.mods.ftbquests.client.FTBQuestsClientEventHandler; import net.minecraftforge.client.event.TextureStitchEvent; import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.fml.event.IModBusEvent; +import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; public class ClientSetup { public static void init() { - MinecraftForge.EVENT_BUS.addListener(ClientSetup::onTextureStitch); + FMLJavaModLoadingContext.get().getModEventBus().addListener(ClientSetup::onTextureStitch); } private static void onTextureStitch(TextureStitchEvent.Post event) {