1
0
mirror of https://github.com/chylex/Better-Controls.git synced 2024-11-25 19:42:45 +01:00

Compare commits

..

3 Commits

Author SHA1 Message Date
8a7febb76b
Release v1.2.3a for Minecraft 1.19+ 2022-08-16 07:45:56 +02:00
553cc9c954
Update minimum dependency versions in mod metadata files 2022-08-16 07:43:45 +02:00
6a35ef4203
Update to Forge 41.1.0
Closes #23
2022-08-16 07:43:45 +02:00
5 changed files with 21 additions and 9 deletions

View File

@ -29,7 +29,7 @@
}],
"depends": {
"fabricloader": ">=0.7.4",
"minecraft": ">=1.17"
"fabricloader": ">=${minimumFabricVersion}",
"minecraft": ">=${minimumMinecraftVersion}"
}
}

View File

@ -4,7 +4,7 @@ import chylex.bettercontrols.gui.BetterControlsScreen;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.screens.Screen;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.ConfigGuiHandler.ConfigGuiFactory;
import net.minecraftforge.client.ConfigScreenHandler.ConfigScreenFactory;
import net.minecraftforge.fml.DistExecutor;
import net.minecraftforge.fml.IExtensionPoint.DisplayTest;
import net.minecraftforge.fml.ModLoadingContext;
@ -16,7 +16,7 @@ import net.minecraftforge.network.NetworkConstants;
public final class BetterControlsMod {
public BetterControlsMod() {
BetterControlsCommon.setConfig(DistExecutor.safeCallWhenOn(Dist.CLIENT, () -> ClientLoader::loadConfig));
ModLoadingContext.get().registerExtensionPoint(ConfigGuiFactory.class, () -> new ConfigGuiFactory(ClientLoader::createScreen));
ModLoadingContext.get().registerExtensionPoint(ConfigScreenFactory.class, () -> new ConfigScreenFactory(ClientLoader::createScreen));
ModLoadingContext.get().registerExtensionPoint(DisplayTest.class, () -> new DisplayTest(() -> NetworkConstants.IGNORESERVERONLY, (a, b) -> true));
}

View File

@ -1,5 +1,5 @@
modLoader = "javafml"
loaderVersion = "[37,)"
loaderVersion = "[0,)"
authors = "${author}"
license = "${license}"
@ -15,13 +15,13 @@ logoFile = "icon.png"
[[dependencies.${id}]]
modId = "minecraft"
mandatory = true
versionRange = "[1.17.1,)"
versionRange = "[${minimumMinecraftVersion},)"
ordering = "NONE"
side = "BOTH"
[[dependencies.${id}]]
modId = "forge"
mandatory = true
versionRange = "[37,)"
versionRange = "[${minimumForgeVersion},)"
ordering = "NONE"
side = "BOTH"

View File

@ -14,6 +14,10 @@ val modIssuesURL: String by project
val minecraftVersion: String by project
val mixinVersion: String by project
val minimumMinecraftVersion: String by project
val minimumForgeVersion: String by project
val minimumFabricVersion: String by project
val modNameStripped = modName.replace(" ", "")
val jarVersion = "$minecraftVersion+v$modVersion"
@ -110,6 +114,9 @@ subprojects {
inputs.property("license", modLicense)
inputs.property("sourcesURL", modSourcesURL)
inputs.property("issuesURL", modIssuesURL)
inputs.property("minimumMinecraftVersion", minimumMinecraftVersion)
inputs.property("minimumForgeVersion", minimumForgeVersion)
inputs.property("minimumFabricVersion", minimumFabricVersion)
from(rootProject.sourceSets.main.get().resources) {
expand(inputs.properties)

View File

@ -3,18 +3,23 @@ modId=bettercontrols
modName=Better Controls
modDescription=Adds many powerful key bindings and options to control your movement.\\n\\nThe features complement vanilla mechanics without giving unfair advantages, so server use should be fine.
modAuthor=chylex
modVersion=1.2.3
modVersion=1.2.3a
modLicense=MPL-2.0
modSourcesURL=https://github.com/chylex/Better-Controls
modIssuesURL=https://github.com/chylex/Better-Controls/issues
# Dependencies
minecraftVersion=1.19
forgeVersion=41.0.1
forgeVersion=41.1.0
fabricVersion=0.14.6
loomVersion=0.12
mixinVersion=0.8.5
# Constraints
minimumMinecraftVersion=1.19
minimumForgeVersion=41.0.94
minimumFabricVersion=0.7.4
# Gradle
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false