Skip to content

Commit

Permalink
Fix #19
Browse files Browse the repository at this point in the history
  • Loading branch information
PanSzelescik committed Jul 30, 2024
1 parent 246b9ba commit 2306ef1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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);
}
Expand Down

0 comments on commit 2306ef1

Please sign in to comment.