Improved mods.toml files

This commit is contained in:
FlorianMichael 2023-12-08 16:24:17 +01:00
parent c202c4c3ca
commit b91a408d36
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
10 changed files with 18 additions and 14 deletions

View File

@ -40,10 +40,9 @@ allprojects {
// Replace the version in the mcmod.info and mods.toml files with the project version
// Since this depends on the platform version, we can't define it in the global scope :(
processResources {
inputs.property "version", project.version
for (final def file in ["mcmod.info", "META-INF/mods.toml"]) {
inputs.property "version", project.version
filesMatching(file) {
expand "version": project.version
}
@ -130,9 +129,9 @@ subprojects {
manifest.attributes(
"Specification-Title": "viaforge",
"Specification-Vendor": "viaforge",
"Specification-Version": "1",
"Specification-Version": project.version,
"Implementation-Title": project.name,
"Implementation-Version": "${archiveVersion}",
"Implementation-Version": project.version,
"Implementation-Vendor" :"viaforge",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd"-"HH:mm:ssZ"),
"TweakClass": "org.spongepowered.asm.launch.MixinTweaker",

BIN
src/main/resources/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -3,7 +3,7 @@
"modid": "viaforge",
"name": "ViaForge",
"description": "Client-side Implementation of the Via* projects for Minecraft Forge",
"version": "${version}",
"version": "3.5.0",
"mcversion": "[1.12.2]",
"url": "https://github.com/ViaVersion/ViaForge",
"updateUrl": "",
@ -11,7 +11,7 @@
"FlorianMichael/EnZaXD"
],
"credits": "https://github.com/FlorianMichael/",
"logoFile": "",
"logoFile": "icon.png",
"screenshots": [],
"dependencies": []
}

View File

@ -29,7 +29,7 @@ import net.raphimc.vialegacy.protocols.release.protocol1_8to1_7_6_10.providers.G
import java.io.File;
import java.util.function.Supplier;
@Mod(modid = "viaforge", version = "3.5.0")
@Mod(modid = "viaforge")
public class ViaForge112 implements VFPlatform {
public static final ViaForge112 PLATFORM = new ViaForge112();

View File

@ -60,7 +60,7 @@ public class ViaForgeGameProfileFetcher extends GameProfileFetcher {
}
@Override
public GameProfile loadGameProfile(UUID uuid) throws Exception {
public GameProfile loadGameProfile(UUID uuid) {
final com.mojang.authlib.GameProfile inProfile = new com.mojang.authlib.GameProfile(uuid, null);
final com.mojang.authlib.GameProfile mojangProfile = SESSION_SERVICE.fillProfileProperties(inProfile, true);
if (mojangProfile.equals(inProfile)) throw new ProfileNotFoundException();

View File

@ -7,9 +7,10 @@ showAsResourcePack=false
[[mods]]
modId="viaforge"
version="3.5.0"
version="${version}"
displayName="ViaForge"
displayURL="https://github.com/FlorianMichael"
logoFile="icon.png"
credits="FlorianMichael/EnZaXD and all ViaVersion/ViaForge contributors"
authors="FlorianMichael/EnZaXD"
description='''

View File

@ -7,9 +7,10 @@ showAsResourcePack=false
[[mods]]
modId="viaforge"
version="3.5.0"
version="${version}"
displayName="ViaForge"
displayURL="https://github.com/FlorianMichael"
logoFile="icon.png"
credits="FlorianMichael/EnZaXD and all ViaVersion/ViaForge contributors"
authors="FlorianMichael/EnZaXD"
description='''

View File

@ -7,9 +7,10 @@ showAsResourcePack=false
[[mods]]
modId="viaforge"
version="3.5.0"
version="${version}"
displayName="ViaForge"
displayURL="https://github.com/FlorianMichael"
logoFile="icon.png"
credits="FlorianMichael/EnZaXD and all ViaVersion/ViaForge contributors"
authors="FlorianMichael/EnZaXD"
description='''

View File

@ -7,9 +7,10 @@ showAsResourcePack=false
[[mods]]
modId="viaforge"
version="3.5.0"
version="${version}"
displayName="ViaForge"
displayURL="https://github.com/FlorianMichael"
logoFile="icon.png"
credits="FlorianMichael/EnZaXD and all ViaVersion/ViaForge contributors"
authors="FlorianMichael/EnZaXD"
description='''

View File

@ -7,9 +7,10 @@ showAsResourcePack=false
[[mods]]
modId="viaforge"
version="3.5.0"
version="${version}"
displayName="ViaForge"
displayURL="https://github.com/FlorianMichael"
logoFile="icon.png"
credits="FlorianMichael/EnZaXD and all ViaVersion/ViaForge contributors"
authors="FlorianMichael/EnZaXD"
description='''