diff --git a/build.gradle b/build.gradle index 4e201d5..954c79f 100644 --- a/build.gradle +++ b/build.gradle @@ -169,6 +169,7 @@ var generateModMetadata = tasks.register("generateModMetadata", ProcessResources minecraft_version : minecraft_version, minecraft_version_range: minecraft_version_range, neo_version : neo_version, + neo_min_version : neo_min_version, loader_version_range : loader_version_range, mod_id : mod_id, mod_name : mod_name, diff --git a/gradle.properties b/gradle.properties index 22a95c7..3814857 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,6 +19,8 @@ minecraft_version=1.21.1 minecraft_version_range=[1.21.1] # The Neo version must agree with the Minecraft version to get a valid artifact neo_version=21.1.234 +# The minimum NeoForge version declared in the built mod metadata. +neo_min_version=21.1.200 # The loader version range can only use the major version of FML as bounds loader_version_range=[1,) @@ -31,9 +33,9 @@ mod_id=lzxnoneterraria mod_name=Lzxnone Terraria # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=All Rights Reserved -# The mod version. See https://semver.org/ -mod_version=1.4.2 -# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. +## The mod version. See https://semver.org/ +#mod_version=1.4.2 +## The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html mod_group_id=com.lzxnone.terraria diff --git a/src/main/java/com/lzxnone/terraria/ModKeyBindings.java b/src/main/java/com/lzxnone/terraria/ModKeyBindings.java index b4e5c58..c91be8a 100644 --- a/src/main/java/com/lzxnone/terraria/ModKeyBindings.java +++ b/src/main/java/com/lzxnone/terraria/ModKeyBindings.java @@ -12,8 +12,8 @@ import org.lwjgl.glfw.GLFW; public class ModKeyBindings { public static final KeyMapping KILL_MODE = new KeyMapping( "key.lzxnoneterraria.kill_mode", - InputConstants.Type.MOUSE, - GLFW.GLFW_MOUSE_BUTTON_MIDDLE, + InputConstants.Type.KEYSYM, + GLFW.GLFW_KEY_C, "key.categories.lzxnoneterraria" ); diff --git a/src/main/templates/META-INF/neoforge.mods.toml b/src/main/templates/META-INF/neoforge.mods.toml index d289a9d..4ace968 100644 --- a/src/main/templates/META-INF/neoforge.mods.toml +++ b/src/main/templates/META-INF/neoforge.mods.toml @@ -71,7 +71,7 @@ Example mod description. # Optional field describing why the dependency is required or why it is incompatible # reason="..." # The version range of the dependency - versionRange="[${neo_version},)" #mandatory + versionRange="[${neo_min_version},)" #mandatory # An ordering relationship for the dependency. # BEFORE - This mod is loaded BEFORE the dependency # AFTER - This mod is loaded AFTER the dependency