Skip to content

Commit

Permalink
Removed generation of extra unused config file.
Browse files Browse the repository at this point in the history
Added updateJSONURL to mods.toml, Forge will now check for updates.
  • Loading branch information
Maxwell-lt committed Nov 2, 2019
1 parent 1d263b0 commit 08ca80f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 36 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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")
])
}
Expand Down
Binary file added releases/titlechanger-2.2.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/java/maxwell_lt/titlechanger/TitleChanger.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
22 changes: 8 additions & 14 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
modLoader="javafml"
loaderVersion="[28,)"
issueTrackerURL="https://github.com/Maxwell-lt/TitleChanger/issues"
authors="maxwell_lt"
[[mods]]
modId="titlechanger"
Expand All @@ -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"
16 changes: 0 additions & 16 deletions src/main/resources/mcmod.info

This file was deleted.

5 changes: 3 additions & 2 deletions update.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 08ca80f

Please sign in to comment.