2024-06-06 11:32:21 +01:00
|
|
|
package xyz.devcomp.elytralock.integrations;
|
|
|
|
|
2024-08-16 12:39:00 +01:00
|
|
|
import xyz.devcomp.elytralock.ElytraLock;
|
2024-06-06 11:32:21 +01:00
|
|
|
import xyz.devcomp.elytralock.config.ConfigHandler;
|
|
|
|
import xyz.devcomp.elytralock.config.ConfigUtil;
|
|
|
|
|
|
|
|
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
|
|
|
import com.terraformersmc.modmenu.api.ModMenuApi;
|
|
|
|
|
|
|
|
public class ModMenuIntegration implements ModMenuApi {
|
|
|
|
@Override
|
|
|
|
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
|
|
|
return (parent) -> {
|
|
|
|
if (!ConfigUtil.isYaclLoaded())
|
|
|
|
return parent;
|
2024-08-16 12:39:00 +01:00
|
|
|
return ElytraLock.config.showGui(parent);
|
2024-06-06 11:32:21 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|