Fix OptiFine resolution for 1.13+.
This commit is contained in:
3
.vscode/launch.json
vendored
3
.vscode/launch.json
vendored
@@ -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": [
|
||||||
|
|||||||
@@ -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: '',
|
||||||
version,
|
mods: [{
|
||||||
mcversion: version.substring(0, version.indexOf('_'))
|
modId: 'optifine',
|
||||||
}) as unknown as ModsToml
|
version,
|
||||||
|
displayName: 'OptiFine',
|
||||||
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user