Skip to content

Commit

Permalink
del(forge): remove the extension point & dist checks and replace with…
Browse files Browse the repository at this point in the history
… client side only in the mods.toml
  • Loading branch information
danorris709 authored and YaLTeR committed Jun 12, 2024
1 parent 542bcd9 commit 50d46d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/java/yalter/mousetweaks/forge/MouseTweaksForge.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
@Mod(Constants.MOD_ID)
public class MouseTweaksForge {
public MouseTweaksForge() {
ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest.class, () -> new IExtensionPoint.DisplayTest(() -> "ANY", (remote, isServer) -> true));
if (FMLEnvironment.dist != Dist.CLIENT) {
Logger.Log("Disabled because not running on the client.");
return;
}

Main.initialize();
MinecraftForge.EVENT_BUS.register(this);

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ modLoader="javafml"
loaderVersion="[50,)"
license="BSD-3-Clause"
issueTrackerURL="https://github.com/YaLTeR/MouseTweaks/issues"
clientSideOnly=true

[[mods]]
modId="mousetweaks"
Expand Down

0 comments on commit 50d46d1

Please sign in to comment.