optifine warning
This commit is contained in:
parent
c282448d5b
commit
b1d9fe18c9
2 changed files with 22 additions and 0 deletions
13
src/logs.ts
13
src/logs.ts
|
@ -136,6 +136,18 @@ const shenadoahGCAnalyzer: analyzer = async (text) => {
|
|||
return null;
|
||||
};
|
||||
|
||||
const optifineAnalyzer: analyzer = async (text) => {
|
||||
const matchesOpti = text.match(/\[✔️\] OptiFine_[\w,.]*/);
|
||||
const matchesOptiFabric = text.match(/\[✔️\] optifabric-[\w,.]*/);
|
||||
if (matchesOpti || matchesOptiFabric) {
|
||||
return [
|
||||
'Possible Optifine Problems',
|
||||
'OptiFine is known to cause problems when paired with other mods. Try to disable OptiFine and see if the issue persists.\nCheck `!optifine` for more info & alternatives you can use.',
|
||||
];
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
const analyzers: analyzer[] = [
|
||||
javaAnalyzer,
|
||||
versionAnalyzer,
|
||||
|
@ -146,6 +158,7 @@ const analyzers: analyzer[] = [
|
|||
quiltFabricInternalsAnalyzer,
|
||||
oomAnalyzer,
|
||||
shenadoahGCAnalyzer,
|
||||
optifineAnalyzer,
|
||||
];
|
||||
|
||||
const providers: logProvider[] = [
|
||||
|
|
|
@ -13,6 +13,15 @@
|
|||
"aliases": ["sendlog", "log"],
|
||||
"text": "Please send logs: https://cdn.discordapp.com/attachments/981957331430539267/983680253367058452/1.png https://cdn.discordapp.com/attachments/981957331430539267/983680253715165234/2.png"
|
||||
},
|
||||
{
|
||||
"name": "optifine",
|
||||
"aliases": ["of", "optimize"],
|
||||
"embed": {
|
||||
"color": "DARK_GREEN",
|
||||
"title": "OptiFine",
|
||||
"description": "OptiFine is known to cause problems when paired with other mods.\nPlease see [Installing OptiFine Alternatives](https://polymc.org/wiki/getting-started/install-of-alternatives/).\nIf you really want to use OptiFine, see [Installing OptiFine](https://polymc.org/wiki/getting-started/installing-optifine/)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "java",
|
||||
"text": "https://polymc.org/wiki/getting-started/installing-java/",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue