Skip to content

Commit

Permalink
Provide stub ModMenu mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed Nov 5, 2023
1 parent a83425f commit 794937d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loom.platform=forge
# Versions
versionMc=1.20.1
versionForge=47.1.3
versionConnectorExtras=1.5.0
versionConnectorExtras=1.5.1

# Publishing
curseForgeId=913445
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@

public class ModMenuCompatSetup {
private static final Logger LOGGER = LogUtils.getLogger();
private static final String MODMENU_MODID = "modmenu";

public static void init() {
Map<String, ConfigScreenFactory<?>> modFactories = new HashMap<>();
List<Map<String, ConfigScreenFactory<?>>> providedFactories = new ArrayList<>();
FabricLoader.getInstance().getEntrypointContainers(MODMENU_MODID, ModMenuApi.class).forEach(container -> {
FabricLoader.getInstance().getEntrypointContainers(ModMenuDummy.MODMENU_MODID, ModMenuApi.class).forEach(container -> {
String modId = container.getProvider().getMetadata().getId();
try {
ModMenuApi entry = container.getEntrypoint();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package dev.su5ed.sinytra.connectorextras.modmenu;

import net.minecraftforge.fml.common.Mod;

@Mod(ModMenuDummy.MODMENU_MODID)
public class ModMenuDummy {
public static final String MODMENU_MODID = "modmenu";
}
9 changes: 9 additions & 0 deletions modmenu-bridge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ description='''
Integrates ModMenu the config screen factory with Forge's mod list gui.
'''
displayTest = 'IGNORE_ALL_VERSION'

[[mods]]
modId = "modmenu"
version = "7.2.2"
displayName = "ModMenu (Connector Extras)"
description = '''
Dummy mod provided by Connector Extras to allow mods detecting ModMenu to function as expected.
'''

[[dependencies.connectorextras_modmenu_bridge]]
modId="forge"
mandatory=true
Expand Down

0 comments on commit 794937d

Please sign in to comment.