Files
TimeChanger/src/main/java/eu/midnightdust/timechanger/config/ModMenuIntegration.java
Emma Waffle 38a02f0f06 Update to 1.17.1
This is mostly buildscript, because the mod itself works fine on 1.17.1 and 1.18 snapshots with no changes. HOWEVER, this moves to the new Mod Menu and AutoConfig packages, and no longer bundles Cloth Config (it's a massive dependency and requires updates like this when they shouldn't be needed).
2021-09-29 18:54:33 -04:00

16 lines
531 B
Java

package eu.midnightdust.timechanger.config;
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
import com.terraformersmc.modmenu.api.ModMenuApi;
import me.shedaniel.autoconfig.AutoConfig;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
@Environment(EnvType.CLIENT)
public class ModMenuIntegration implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return parent -> AutoConfig.getConfigScreen(TimeChangerConfig.class, parent).get();
}
}