From 2306ef1051d0f5a1a83445a5e0f9ce91f0fd1a66 Mon Sep 17 00:00:00 2001 From: PanSzelescik Date: Wed, 31 Jul 2024 00:28:37 +0200 Subject: [PATCH] Fix #19 --- .../pl/panszelescik/colorize/neoforge/ColorizeNeoForge.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neoforged/src/main/java/pl/panszelescik/colorize/neoforge/ColorizeNeoForge.java b/neoforged/src/main/java/pl/panszelescik/colorize/neoforge/ColorizeNeoForge.java index 9b72c47..c7b884a 100644 --- a/neoforged/src/main/java/pl/panszelescik/colorize/neoforge/ColorizeNeoForge.java +++ b/neoforged/src/main/java/pl/panszelescik/colorize/neoforge/ColorizeNeoForge.java @@ -1,9 +1,9 @@ package pl.panszelescik.colorize.neoforge; -import net.neoforged.bus.api.IEventBus; import net.neoforged.fml.ModContainer; import net.neoforged.fml.common.Mod; import net.neoforged.fml.config.ModConfig; +import net.neoforged.neoforge.common.NeoForge; import net.neoforged.neoforge.event.entity.player.PlayerInteractEvent; import org.jetbrains.annotations.NotNull; @@ -13,8 +13,8 @@ public class ColorizeNeoForge { public static final String MODID = "colorize"; private final ColorizeNeoForgeHandler handler = new ColorizeNeoForgeHandler(ColorizeNeoForgeConfig.CONFIG); - public ColorizeNeoForge(ModContainer modContainer, IEventBus bus) { - bus.addListener(this::onRightClickBlock); + public ColorizeNeoForge(ModContainer modContainer) { + NeoForge.EVENT_BUS.addListener(this::onRightClickBlock); modContainer.registerConfig(ModConfig.Type.COMMON, ColorizeNeoForgeConfig.SPEC); }