-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9d0a0a
commit 3e4e86c
Showing
3 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
forge/src/main/java/net/blay09/mods/netherportalfix/ForgeNetherPortalFix.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
package net.blay09.mods.netherportalfix; | ||
|
||
import net.blay09.mods.balm.api.Balm; | ||
import net.blay09.mods.balm.api.EmptyLoadContext; | ||
import net.blay09.mods.balm.forge.ForgeLoadContext; | ||
import net.minecraftforge.fml.IExtensionPoint; | ||
import net.minecraftforge.fml.ModLoadingContext; | ||
import net.minecraftforge.fml.common.Mod; | ||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; | ||
|
||
@Mod(NetherPortalFix.MOD_ID) | ||
public class ForgeNetherPortalFix { | ||
|
||
public ForgeNetherPortalFix() { | ||
Balm.initialize(NetherPortalFix.MOD_ID, EmptyLoadContext.INSTANCE, NetherPortalFix::initialize); | ||
public ForgeNetherPortalFix(FMLJavaModLoadingContext context) { | ||
final var loadContext = new ForgeLoadContext(context.getModEventBus()); | ||
Balm.initialize(NetherPortalFix.MOD_ID, loadContext, NetherPortalFix::initialize); | ||
|
||
ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest.class, () -> new IExtensionPoint.DisplayTest(() -> IExtensionPoint.DisplayTest.IGNORESERVERONLY, (a, b) -> true)); | ||
context.registerDisplayTest(IExtensionPoint.DisplayTest.IGNORE_ALL_VERSION); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters