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();
|
TagAPI.init();
|
||||||
CraftingRecipes.init();
|
CraftingRecipes.init();
|
||||||
WorldDataAPI.registerModCache(MOD_ID);
|
WorldDataAPI.registerModCache(MOD_ID);
|
||||||
|
|
||||||
DataExchangeAPI.registerMod(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(
|
DataExchangeAPI.registerDescriptors(List.of(
|
||||||
HelloClient.DESCRIPTOR,
|
HelloClient.DESCRIPTOR,
|
||||||
HelloServer.DESCRIPTOR,
|
HelloServer.DESCRIPTOR,
|
||||||
RequestFiles.DESCRIPTOR,
|
RequestFiles.DESCRIPTOR,
|
||||||
SendFiles.DESCRIPTOR
|
SendFiles.DESCRIPTOR
|
||||||
));
|
));
|
||||||
|
|
||||||
|
DataFixerAPI.registerPatch(() -> new BCLibPatch());
|
||||||
|
|
||||||
Configs.save();
|
Configs.save();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue