Skip to content

Commit

Permalink
Changed how its loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Jan 30, 2022
1 parent 7e525aa commit 4058ef2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'

group = 'com.buuz135'
version = '1.0.0'
version = '1.18.1-1.0.1'

java {
archivesBaseName = 'DarkModeEverywhere'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import net.minecraftforge.fml.IExtensionPoint;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.loading.FMLEnvironment;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

// The value here should match an entry in the META-INF/mods.toml file
@Mod("darkmodeeverywhere")
public class DarkModeEverywhere {

Expand All @@ -17,7 +17,9 @@ public class DarkModeEverywhere {

public DarkModeEverywhere() {
ModLoadingContext.get().registerExtensionPoint(IExtensionPoint.DisplayTest.class, () -> new IExtensionPoint.DisplayTest(() -> "ANY", (remote, isServer) -> true));
DistExecutor.safeCallWhenOn(Dist.CLIENT, () -> ClientProxy::new);
if (FMLEnvironment.dist == Dist.CLIENT){
new ClientProxy();
}
}

}

0 comments on commit 4058ef2

Please sign in to comment.