Skip to content

Commit

Permalink
Fix mod meta
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-dencep committed Dec 2, 2023
1 parent 4347870 commit 9e55c60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
2 changes: 0 additions & 2 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"rrls-common.mixins.json"
],
"depends": {
"fabric": "*",
"fabric-api": "*",
"minecraft": "~1.20",
"cloth-config": "*"
Expand All @@ -44,7 +43,6 @@
"links": {
"modmenu.curseforge": "https://curseforge.com/minecraft/mc-mods/rrls",
"modmenu.discord": "https://discord.gg/jdB5JYX7W7",
"modmenu.donate": "https://www.donationalerts.com/c/dima_dencep",
"modmenu.github_releases": "https://github.com/dima-dencep/rrls/releases",
"modmenu.modrinth": "https://modrinth.com/mod/rrls"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,21 @@
import com.github.dimadencep.mods.rrls.accessor.SplashAccessor;
import com.github.dimadencep.mods.rrls.config.ModConfig;
import me.shedaniel.autoconfig.AutoConfig;
import net.neoforged.fml.ModContainer;
import net.neoforged.neoforge.client.ConfigScreenHandler;
import net.neoforged.neoforge.client.event.RenderGuiEvent;
import net.neoforged.neoforge.client.event.ScreenEvent;
import net.neoforged.neoforge.common.NeoForge;
import net.neoforged.neoforge.event.TickEvent;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.IExtensionPoint;
import net.neoforged.fml.ModLoadingContext;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.network.NetworkConstants;

@Mod("rrls")
public class RrlsForge extends Rrls {
public RrlsForge() {
ModLoadingContext.get().registerExtensionPoint(
IExtensionPoint.DisplayTest.class,
() -> new IExtensionPoint.DisplayTest(
() -> NetworkConstants.IGNORESERVERONLY,
(a, b) -> true
)
);

public RrlsForge(ModContainer modContainer) {
NeoForge.EVENT_BUS.register(this);

ModLoadingContext.get().registerExtensionPoint(
modContainer.registerExtensionPoint(
ConfigScreenHandler.ConfigScreenFactory.class,
() -> new ConfigScreenHandler.ConfigScreenFactory(
(mc, screen) -> AutoConfig.getConfigScreen(ModConfig.class, screen).get()
Expand Down
1 change: 1 addition & 0 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ issueTrackerURL = "https://github.com/dima-dencep/rrls/issues"
license = "OSL-3.0"

[[mods]]
displayTest = "IGNORE_SERVER_VERSION"
modId = "rrls"
version = "${version}"
displayURL = "https://curseforge.com/minecraft/mc-mods/rrls"
Expand Down

0 comments on commit 9e55c60

Please sign in to comment.