Offer ModMenu if installed

This commit is contained in:
Frank 2021-08-20 01:53:55 +02:00
parent 7eb44ebb82
commit 48c46e2105

View file

@ -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();
}