Skip to content

Commit

Permalink
Disable mod entrypoint on Forge when running on servers (#2773)
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr authored Sep 24, 2024
1 parent 313f21f commit bade228
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
import net.caffeinemc.mods.sodium.client.render.frapi.SodiumRenderer;
import net.caffeinemc.mods.sodium.client.render.texture.SpriteFinderCache;
import net.fabricmc.fabric.api.renderer.v1.RendererAccess;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.ModContainer;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.client.event.RegisterClientReloadListenersEvent;
import net.neoforged.neoforge.client.gui.IConfigScreenFactory;

@Mod("sodium")
@Mod(value = "sodium", dist = Dist.CLIENT)
public class SodiumForgeMod {
public SodiumForgeMod(IEventBus bus, ModContainer modContainer) {
modContainer.registerExtensionPoint(IConfigScreenFactory.class, (minecraft, screen) -> SodiumOptionsGUI.createScreen(screen));
Expand Down

0 comments on commit bade228

Please sign in to comment.