diff --git a/build.gradle b/build.gradle index acc065d..2668680 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ ext.modid = "titlechanger" ext.modname = "Title Changer" ext.moddescription = "Changes the Minecraft window title." ext.modauthors = "maxwell-lt" -ext.modversion = "2.1" +ext.modversion = "2.2" ext.modpackage = "maxwell_lt.titlechanger" ext.modarchive = "titlechanger" @@ -85,7 +85,7 @@ minecraft { // Recommended logging level for the console property 'forge.logging.console.level', 'debug' - args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/') + args '--mod', 'titlechanger', '--all', '--output', file('src/generated/resources/') mods { examplemod { @@ -131,7 +131,7 @@ jar { "Specification-Version": "1", // We are version 1 of ourselves "Implementation-Title": project.name, "Implementation-Version": "${version}", - "Implementation-Vendor" :modauthors, + "Implementation-Vendor": modauthors, "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } diff --git a/releases/titlechanger-2.2.jar b/releases/titlechanger-2.2.jar new file mode 100644 index 0000000..754517d Binary files /dev/null and b/releases/titlechanger-2.2.jar differ diff --git a/src/main/java/maxwell_lt/titlechanger/TitleChanger.java b/src/main/java/maxwell_lt/titlechanger/TitleChanger.java index 435d465..fcadaec 100644 --- a/src/main/java/maxwell_lt/titlechanger/TitleChanger.java +++ b/src/main/java/maxwell_lt/titlechanger/TitleChanger.java @@ -26,7 +26,7 @@ public TitleChanger() { // Register the setup method for modloading FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); - Config.loadConfig(Config.GENERAL_CONFIG, FMLPaths.CONFIGDIR.get().resolve("titlechanger.toml")); + Config.loadConfig(Config.GENERAL_CONFIG, FMLPaths.CONFIGDIR.get().resolve("titlechanger-client.toml")); // Register ourselves for server and other game events we are interested in MinecraftForge.EVENT_BUS.register(this); diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 7e0a95e..6b7c3b1 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -1,6 +1,5 @@ modLoader="javafml" loaderVersion="[28,)" -issueTrackerURL="https://github.com/Maxwell-lt/TitleChanger/issues" authors="maxwell_lt" [[mods]] modId="titlechanger" @@ -9,16 +8,11 @@ displayName="TitleChanger" description=''' Changes the Minecraft window title. ''' -#[[dependencies.titlechanger]] -# modId="forge" -# mandatory=true -# versionRange="[28,)" -# ordering="NONE" -# side="BOTH" -#[[dependencies.titlechanger]] -# modId="minecraft" -# mandatory=true -# versionRange="[1.13.2,1.14.4,1.15)" -# ordering="NONE" -# side="BOTH" - +issueTrackerURL="https://github.com/Maxwell-lt/TitleChanger/issues" +updateJSONURL="https://raw.githubusercontent.com/Maxwell-lt/TitleChanger/master/update.json" +[[dependencies.titlechanger]] + modId="minecraft" + mandatory=true + versionRange="[1.14.4]" + ordering="NONE" + side="BOTH" \ No newline at end of file diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info deleted file mode 100644 index b208dd0..0000000 --- a/src/main/resources/mcmod.info +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "modid": "${modid}", - "name": "${name}", - "description": "${description}", - "version": "${version}", - "mcversion": "1.14.4", - "url": "${url}", - "updateUrl": "${updatejson}", - "authorList": ["${authors}"], - "credits": "", - "logoFile": "", - "screenshots": [], - "dependencies": [] - } -] \ No newline at end of file diff --git a/update.json b/update.json index 517cc5a..cda9233 100644 --- a/update.json +++ b/update.json @@ -21,13 +21,14 @@ "1.1.3": "Update to 1.12.2" }, "1.14.4": { - "2.1": "Added new features", + "2.2": "Fixed generation of a useless config file, added update checking", + "2.1": "Added a handful of new features, including the ability to display the player's current location", "2.0-b1": "Initial release for Minecraft 1.14" }, "promos": { "1.10.2-latest": "1.1.4", "1.11.2-latest": "1.1.4", "1.12.2-latest": "1.1.4", - "1.14.4-latest": "2.1" + "1.14.4-latest": "2.2" } }