Skip to content

Commit

Permalink
mixin moment
Browse files Browse the repository at this point in the history
  • Loading branch information
not-coded committed Nov 1, 2024
1 parent b07f1e4 commit a3c8526
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ ordering = "NONE"
side = "CLIENT"

[[mixins]]
config = "wayfix.mixins.json"
config = "wayfix-common.mixins.json"

[[mixins]]
config = "wayfix-forge.mixins.json"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import net.neoforged.fml.common.Mod;
import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent;
import net.neoforged.fml.javafmlmod.FMLJavaModLoadingContext;
import net.neoforged.neoforge.client.gui.IConfigScreenFactory;
import net.neoforged.neoforge.client.ConfigScreenHandler;
import net.notcoded.wayfix.common.config.ModConfig;

@Mod(value = "wayfix")
Expand All @@ -22,8 +22,8 @@ public WayFixNeoForge() {
private static void onClientSetup(final FMLClientSetupEvent event) {
// TODO: add config support for >1.20.6 (IConfigScreenFactory)
event.enqueueWork(() -> {
ModLoadingContext.get().registerExtensionPoint(IConfigScreenFactory.class, () ->
(
ModLoadingContext.get().registerExtensionPoint(ConfigScreenHandler.ConfigScreenFactory.class, () ->
new ConfigScreenHandler.ConfigScreenFactory(
(client, parent) -> AutoConfig.getConfigScreen(ModConfig.class, parent).get()
)
);
Expand Down
5 changes: 4 additions & 1 deletion neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ ordering = "NONE"
side = "CLIENT"

[[mixins]]
config = "wayfix.mixins.json"
config = "wayfix-common.mixins.json"

[[mixins]]
config = "wayfix-neoforge.mixins.json"

0 comments on commit a3c8526

Please sign in to comment.