Skip to content

Commit

Permalink
ref(forge): update config screen registry to use new method
Browse files Browse the repository at this point in the history
  • Loading branch information
danorris709 authored and YaLTeR committed Jun 12, 2024
1 parent 50d46d1 commit d215d11
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
1 change: 0 additions & 1 deletion src/main/java/yalter/mousetweaks/ConfigScreen.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package yalter.mousetweaks;

import com.mojang.blaze3d.vertex.PoseStack;
import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.client.gui.components.Button;
import net.minecraft.client.gui.components.CycleButton;
Expand Down
14 changes: 0 additions & 14 deletions src/main/java/yalter/mousetweaks/forge/ClientHelper.java

This file was deleted.

7 changes: 2 additions & 5 deletions src/main/java/yalter/mousetweaks/forge/MouseTweaksForge.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,15 @@
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.loading.FMLEnvironment;
import yalter.mousetweaks.Constants;
import yalter.mousetweaks.Logger;
import yalter.mousetweaks.Main;
import yalter.mousetweaks.MouseButton;
import yalter.mousetweaks.*;

@Mod(Constants.MOD_ID)
public class MouseTweaksForge {
public MouseTweaksForge() {
Main.initialize();
MinecraftForge.EVENT_BUS.register(this);

ModLoadingContext.get().registerExtensionPoint(ConfigScreenFactory.class, ClientHelper::createConfigScreenFactory);
MinecraftForge.registerConfigScreen(ConfigScreen::new);
}

@SubscribeEvent
Expand Down

0 comments on commit d215d11

Please sign in to comment.