Skip to content

Commit

Permalink
Mark as "not required on the server", closes HalogenMods#13
Browse files Browse the repository at this point in the history
  • Loading branch information
malte0811 committed Jan 31, 2021
1 parent 6b003eb commit b0e18f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/dev/hanetzer/chlorine/common/Chlorine.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.fml.DistExecutor;
import net.minecraftforge.fml.ExtensionPoint;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.network.FMLNetworkConstants;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

Expand All @@ -15,5 +19,9 @@ public class Chlorine {
public static final Logger log = LogManager.getLogger(modID);
public Chlorine() {
DistExecutor.runWhenOn(Dist.CLIENT, () -> Config::register);
ModLoadingContext.get().registerExtensionPoint(
ExtensionPoint.DISPLAYTEST,
()->Pair.of(()->FMLNetworkConstants.IGNORESERVERONLY, (s,b)->true)
);
}
}

0 comments on commit b0e18f1

Please sign in to comment.