mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
made mcmod.info autoversion via gradle (kinda forgot about that...), had to change modinfo format for that to work (for whatever reason... search and replace doesn't work in nested json? o.O); added safety net to update checker
This commit is contained in:
parent
98ae923da4
commit
ce9fccde7a
@ -17,7 +17,7 @@ minecraft {
|
|||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
include 'mcmod/info'
|
include 'mcmod.info'
|
||||||
expand 'version': project.simpleVersion, 'mcversion': config.minecraft.version
|
expand 'version': project.simpleVersion, 'mcversion': config.minecraft.version
|
||||||
}
|
}
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
from(sourceSets.main.resources.srcDirs) {
|
||||||
|
@ -1,28 +1,25 @@
|
|||||||
{
|
[{
|
||||||
"modinfoversion": 2,
|
"modid": "OpenComputers",
|
||||||
"modlist": [{
|
"name": "OpenComputers",
|
||||||
"modid": "OpenComputers",
|
"description": "This mod adds modular computers and robots that can be programmed in Lua.",
|
||||||
"name": "OpenComputers",
|
"version": "${version}",
|
||||||
"description": "This mod adds modular computers and robots that can be programmed in Lua.",
|
"mcversion": "${mcversion}",
|
||||||
"version": "1.2.2",
|
"url": "https://github.com/MightyPirates/OpenComputers/wiki",
|
||||||
"mcversion": "1.6.4",
|
"authors": ["Florian 'Sangar' Nücke", "Johannes 'Lord Joda' Lohrer", "Everyone who contributed to the mod on Github - thank you!"],
|
||||||
"url": "https://github.com/MightyPirates/OpenComputers/wiki",
|
"credits" : "Inspired by a couple of other mods, most notably ComputerCraft.",
|
||||||
"authors": ["Florian 'Sangar' Nücke", "Johannes 'Lord Joda' Lohrer", "Everyone who contributed to the mod on Github - thank you!"],
|
"logoFile" : "assets/opencomputers/textures/gui/logo.png",
|
||||||
"credits" : "Inspired by a couple of other mods, most notably ComputerCraft.",
|
"requiredMods": [ "Forge@[9.11.1.940,)" ],
|
||||||
"logoFile" : "assets/opencomputers/textures/gui/logo.png",
|
"dependencies": [
|
||||||
"requiredMods": [ "Forge@[9.11.1.940,)" ],
|
"BuildCraft|Energy",
|
||||||
"dependencies": [
|
"ComputerCraft",
|
||||||
"BuildCraft|Energy",
|
"ForgeMultipart",
|
||||||
"ComputerCraft",
|
"IC2",
|
||||||
"ForgeMultipart",
|
"MineFactoryReloaded",
|
||||||
"IC2",
|
"ProjRed|Transmission",
|
||||||
"MineFactoryReloaded",
|
"RedLogic",
|
||||||
"ProjRed|Transmission",
|
"StargateTech2",
|
||||||
"RedLogic",
|
"ThermalExpansion",
|
||||||
"StargateTech2",
|
"UniversalElectricity"
|
||||||
"ThermalExpansion",
|
],
|
||||||
"UniversalElectricity"
|
"useDependencyInformation": "true"
|
||||||
],
|
}]
|
||||||
"useDependencyInformation": "true"
|
|
||||||
}]
|
|
||||||
}
|
|
@ -13,7 +13,9 @@ object UpdateCheck {
|
|||||||
val releasesUrl = new URL("https://api.github.com/repos/MightyPirates/OpenComputers/releases")
|
val releasesUrl = new URL("https://api.github.com/repos/MightyPirates/OpenComputers/releases")
|
||||||
|
|
||||||
val version = Loader.instance.getIndexedModList.get("OpenComputers").getVersion
|
val version = Loader.instance.getIndexedModList.get("OpenComputers").getVersion
|
||||||
val majorVersion = version.split('.')(0).toInt
|
val majorVersion = try version.split('.')(0).toInt catch {
|
||||||
|
case _: Throwable => 0
|
||||||
|
}
|
||||||
|
|
||||||
// Lazy to make initialize() execute once from the first thread that tries to
|
// Lazy to make initialize() execute once from the first thread that tries to
|
||||||
// read it. If other threads are spawned while it's running they will wait,
|
// read it. If other threads are spawned while it's running they will wait,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user