aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm/shsupercm/fabric/citresewn/config/CITResewnModMenu.java
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2022-01-21 15:50:24 +0200
committerSHsuperCM <shsupercm@gmail.com>2022-01-21 17:43:35 +0200
commitc48e23a8949eaa89d06908201357b53fa7eaedbe (patch)
treeadd591602e2e2b93b702ed7e5c8e9fb3ea95e091 /src/main/java/shcm/shsupercm/fabric/citresewn/config/CITResewnModMenu.java
parent897172bde9128da47181a6db6c1ff4885081ba8d (diff)
downloadCITResewn-c48e23a8949eaa89d06908201357b53fa7eaedbe.tar.gz
CITResewn-c48e23a8949eaa89d06908201357b53fa7eaedbe.tar.bz2
CITResewn-c48e23a8949eaa89d06908201357b53fa7eaedbe.zip
Added config/screen for defaults
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/config/CITResewnModMenu.java')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/config/CITResewnModMenu.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/config/CITResewnModMenu.java b/src/main/java/shcm/shsupercm/fabric/citresewn/config/CITResewnModMenu.java
index cf6d9bd..378350a 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/config/CITResewnModMenu.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/config/CITResewnModMenu.java
@@ -11,15 +11,8 @@ public class CITResewnModMenu implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
if (FabricLoader.getInstance().isModLoaded("cloth-config2"))
- return new ClothConfigOpenImpl().getModConfigScreenFactory();
+ return CITResewnConfigScreenFactory::create;
return parent -> new NoticeScreen(() -> MinecraftClient.getInstance().setScreen(parent), Text.of("CIT Resewn"), Text.of("CIT Resewn requires Cloth Config to be able to show the config."));
}
-
- private static class ClothConfigOpenImpl implements ModMenuApi {
- @Override
- public ConfigScreenFactory<?> getModConfigScreenFactory() {
- return CITResewnConfigScreenFactory::create;
- }
- }
}