mirror of
https://github.com/CompeyDev/elytra-lock-fabric.git
synced 2024-12-12 21:00:42 +00:00
19 lines
571 B
Java
19 lines
571 B
Java
|
package xyz.devcomp.elytralock.integrations;
|
||
|
|
||
|
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;
|
||
|
return new ConfigHandler().showGui(parent);
|
||
|
};
|
||
|
}
|
||
|
}
|