Skip to content

Commit

Permalink
1.16 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Linguardium committed Jun 19, 2020
1 parent 9b16c7b commit 25e0d30
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.2.7-SNAPSHOT'
id 'fabric-loom' version '0.4-SNAPSHOT'
id 'maven-publish'
}

Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
org.gradle.jvmargs = -Xmx1G

#Fabric properties
minecraft_version = 1.15.2
yarn_mappings = 1.15.2+build.15
loader_version = 0.8.2+build.194
minecraft_version=1.16-rc1
yarn_mappings=1.16-rc1+build.4
loader_version=0.8.8+build.202

#Mod properties
mod_version = 1.0.0
mod_version = 1.0.1
maven_group = mod.linguardium.dontpushme
archives_base_name = dontpushme

autoconfig_version = 2.0.1
clothconfig_version = 2.13.4
modmenu_version = 1.10.2+build.32
autoconfig_version = 3.2.0-unstable
clothconfig_version = 4.5.5
modmenu_version = 1.12.1+build.15
13 changes: 7 additions & 6 deletions src/main/java/mod/linguardium/dontpushme/ModMenuMenu.java
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
package mod.linguardium.dontpushme;

import io.github.prospector.modmenu.api.ConfigScreenFactory;
import io.github.prospector.modmenu.api.ModMenuApi;
import me.sargunvohra.mcmods.autoconfig1u.AutoConfig;
import net.minecraft.client.gui.screen.Screen;

import java.util.Optional;
import java.util.function.Supplier;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;

@Environment(EnvType.CLIENT)
public class ModMenuMenu implements ModMenuApi {
@Override
public String getModId() {
return DontPushMe.MOD_ID;
}

@Override
public Optional<Supplier<Screen>> getConfigScreen(Screen screen) {
return Optional.of(AutoConfig.getConfigScreen(ModConfig.class, screen));
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return screen -> AutoConfig.getConfigScreen(ModConfig.class, screen).get();
}

}

0 comments on commit 25e0d30

Please sign in to comment.