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 1b34963 commit b4bffa0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ forge_mapping=20201028-1.16.3
forge_version=35.0.18
mod_name=GameMenuRemoveGFARB
mod_group=net.morimori.gmrg
mod_version=1.1
mod_version=1.1.1
mod_vendor=MORIMORI0317
mc_version=1.16.4
curesfg_id=420519
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/net/morimori/gmrg/GameMenuRemoveGFARB.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
package net.morimori.gmrg;

import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.ExtensionPoint;
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.fml.network.FMLNetworkConstants;
import org.apache.commons.lang3.tuple.Pair;

@Mod("gamemenuremovegfarb")
public class GameMenuRemoveGFARB {

public GameMenuRemoveGFARB() {
ModLoadingContext.get().registerExtensionPoint(ExtensionPoint.DISPLAYTEST, () -> Pair.of(() -> FMLNetworkConstants.IGNORESERVERONLY, (a, b) -> true));
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff);
}

Expand Down

0 comments on commit b4bffa0

Please sign in to comment.