Offer ModMenu if installed
This commit is contained in:
parent
7eb44ebb82
commit
48c46e2105
1 changed files with 6 additions and 1 deletions
|
@ -39,14 +39,19 @@ public class BCLib implements ModInitializer {
|
|||
TagAPI.init();
|
||||
CraftingRecipes.init();
|
||||
WorldDataAPI.registerModCache(MOD_ID);
|
||||
|
||||
DataExchangeAPI.registerMod(MOD_ID);
|
||||
DataFixerAPI.registerPatch(() -> new BCLibPatch());
|
||||
//this will offer modMenu to clients if installed in the server
|
||||
DataExchangeAPI.registerModDependency("modmenu");
|
||||
|
||||
DataExchangeAPI.registerDescriptors(List.of(
|
||||
HelloClient.DESCRIPTOR,
|
||||
HelloServer.DESCRIPTOR,
|
||||
RequestFiles.DESCRIPTOR,
|
||||
SendFiles.DESCRIPTOR
|
||||
));
|
||||
|
||||
DataFixerAPI.registerPatch(() -> new BCLibPatch());
|
||||
|
||||
Configs.save();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue