Skip to content

Commit

Permalink
Mark as clientside
Browse files Browse the repository at this point in the history
  • Loading branch information
Asek3 committed Sep 5, 2023
1 parent 03bcc90 commit e9aa576
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/net/coderbot/iris/Iris.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

import net.minecraftforge.client.event.InputEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.ExtensionPoint;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.network.FMLNetworkConstants;
import org.apache.commons.lang3.tuple.Pair;
import org.jetbrains.annotations.NotNull;
import org.lwjgl.glfw.GLFW;

Expand Down Expand Up @@ -100,8 +104,9 @@ public class Iris {
public Iris() {
try {
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onInitializeClient);

MinecraftForge.EVENT_BUS.addListener(this::onKeyInput);

ModLoadingContext.get().registerExtensionPoint(ExtensionPoint.DISPLAYTEST, () -> Pair.of(() -> FMLNetworkConstants.IGNORESERVERONLY, (a, b) -> true));
}catch(Exception ignored) {}
}

Expand Down

0 comments on commit e9aa576

Please sign in to comment.