Skip to content

Commit

Permalink
fix server list FML incompatibility notification
Browse files Browse the repository at this point in the history
  • Loading branch information
MORIMORI0317 committed Jan 9, 2022
1 parent 7aaf643 commit 1a92a1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fg_version=1.18-38.0.12
#-----------------------------
mod_name=BetterTaskbar
mod_id=bettertaskbar
mod_version=1.1
mod_version=1.2
mod_group=net.morimori0317
mod_vendor=MORIMORI0317
mod_implevendor=MORIMORI0317
Expand All @@ -21,7 +21,7 @@ curesforge_id=538793
modrinth_id=gPEcet33
release_type=release
loader_type=Forge
support_versions=1.18
support_versions=1.18,1.18.1
required_mods=
optional_mods=
embedded_mods=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.DistExecutor;
import net.minecraftforge.fml.IExtensionPoint;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.network.NetworkConstants;

@Mod(BetterTaskbar.MODID)
public class BetterTaskbar {
public static final String MODID = "bettertaskbar";

public BetterTaskbar() {
ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest.class, () -> new IExtensionPoint.DisplayTest(() -> NetworkConstants.IGNORESERVERONLY, (remote, isServer) -> true));
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff);
DistExecutor.unsafeRunWhenOn(Dist.CLIENT, () -> () -> {
BetterTaskbarAPI btm = BetterTaskbarAPI.getInstance();
Expand Down

0 comments on commit 1a92a1b

Please sign in to comment.