feat: config file versioning
This commit is contained in:
parent
04dcfb5870
commit
6eef1d1fab
|
@ -2,3 +2,8 @@
|
|||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhconvention'
|
||||
}
|
||||
|
||||
minecraft{
|
||||
injectedTags.put("MCVERSION", version)
|
||||
injectedTags.put("CONFIG_VERSION", "1.0.0")
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ public class CommonProxy {
|
|||
// preInit "Run before anything else. Read your config, create blocks, items, etc, and register them with the
|
||||
// GameRegistry." (Remove if not needed)
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
Config.configuration = new Configuration(event.getSuggestedConfigurationFile());
|
||||
Config.configuration = new Configuration(event.getSuggestedConfigurationFile(), Tags.CONFIG_VERSION);
|
||||
Config.synchronizeConfiguration();
|
||||
|
||||
MCStreamerBot.LOG.info("MCStreamerBot is meowing in version " + Tags.VERSION);
|
||||
|
|
|
@ -13,7 +13,7 @@ import moe.yuyui.mcstreamerbot.common.EventListener;
|
|||
|
||||
@Mod(
|
||||
modid = MCStreamerBot.MODID,
|
||||
version = "1.0.1-" + Tags.VERSION,
|
||||
version = Tags.VERSION,
|
||||
name = "MCStreamerBot",
|
||||
acceptedMinecraftVersions = "[1.7.10]",
|
||||
guiFactory = "moe.yuyui." + MCStreamerBot.MODID + ".gui.MCStreamerBotGuiFactory")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) [year] [fullname]
|
||||
Copyright (c) 2024 Yui yui@yuyui.moe
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
SOFTWARE.
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
"modList": [{
|
||||
"modid": "${modId}",
|
||||
"name": "${modName}",
|
||||
"description": "An example mod for Minecraft 1.7.10 with Forge focused on a stable setup.",
|
||||
"description": "A mod that integrates with Streamer.bot through websocket",
|
||||
"version": "${modVersion}",
|
||||
"mcversion": "${minecraftVersion}",
|
||||
"url": "https://github.com/SinTh0r4s/MyMod",
|
||||
"url": "https://git.osufx.com/yui/mc-streamerbot-integration",
|
||||
"updateUrl": "",
|
||||
"authorList": ["SinTho0r4s"],
|
||||
"credits": "",
|
||||
"authorList": ["yuyui.moe"],
|
||||
"credits": "yuyui.moe for developing this mod, Vampurrya for the idea.",
|
||||
"logoFile": "",
|
||||
"screenshots": [],
|
||||
"parent": "",
|
||||
|
|
Loading…
Reference in New Issue
Block a user