Skip to content

Commit

Permalink
add default implementation to early register entrypoint so users don'…
Browse files Browse the repository at this point in the history
…t need to implement both entrypoints even if they only need the late ("main") one
  • Loading branch information
douira committed Nov 1, 2024
1 parent 3cf0729 commit dc1332e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import net.caffeinemc.mods.sodium.api.config.structure.ConfigBuilder;

public interface ConfigEntryPoint {
void registerConfigEarly(ConfigBuilder builder);
default void registerConfigEarly(ConfigBuilder builder) {
};

void registerConfigLate(ConfigBuilder builder);
}

0 comments on commit dc1332e

Please sign in to comment.