Fix OptiFine resolution for 1.13+.

This commit is contained in:
Daniel Scalzi
2020-06-13 00:31:47 -04:00
parent ceb23f11a5
commit 2f679411b9
3 changed files with 16 additions and 8 deletions

3
.vscode/launch.json vendored
View File

@@ -11,7 +11,8 @@
"program": "${workspaceFolder}\\src\\index.ts", "program": "${workspaceFolder}\\src\\index.ts",
"args": [ "args": [
"g", "g",
"distro" "distro",
"xyz"
], ],
"preLaunchTask": "compile", "preLaunchTask": "compile",
"outFiles": [ "outFiles": [

View File

@@ -87,12 +87,19 @@ export class ForgeModStructure113 extends BaseForgeModStructure {
const info = changelogBuf.toString().split('\n')[0].trim() const info = changelogBuf.toString().split('\n')[0].trim()
const version = info.split(' ')[1] const version = info.split(' ')[1]
this.forgeModMetadata[name] = ({ this.forgeModMetadata[name] = ({
modid: 'optifine', modLoader: 'javafml',
name: info, loaderVersion: '',
mods: [{
modId: 'optifine',
version, version,
mcversion: version.substring(0, version.indexOf('_')) displayName: 'OptiFine',
}) as unknown as ModsToml description: `OptiFine is a Minecraft optimization mod.
It allows Minecraft to run faster and look better with full support for shaders, HD textures and many configuration options.`
}]
})
return this.forgeModMetadata[name] as ModsToml return this.forgeModMetadata[name] as ModsToml
} }

View File

@@ -89,7 +89,7 @@ export class ForgeModStructure17 extends BaseForgeModStructure {
name: info, name: info,
version, version,
mcversion: version.substring(0, version.indexOf('_')) mcversion: version.substring(0, version.indexOf('_'))
}) as unknown as McModInfo }) as McModInfo
return this.forgeModMetadata[name] as McModInfo return this.forgeModMetadata[name] as McModInfo
} }
@@ -139,7 +139,7 @@ export class ForgeModStructure17 extends BaseForgeModStructure {
modid: crudeInference.name.toLowerCase(), modid: crudeInference.name.toLowerCase(),
name: crudeInference.name, name: crudeInference.name,
version: crudeInference.version version: crudeInference.version
}) as unknown as McModInfo }) as McModInfo
} }
return this.forgeModMetadata[name] as McModInfo return this.forgeModMetadata[name] as McModInfo