summaryrefslogtreecommitdiffstats
path: root/api/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2020-03-26 03:38:31 +0100
committerPetr Mrázek <peterix@gmail.com>2020-03-26 03:51:14 +0100
commitebb17cb5f8b4b7771c28bb0286846aa52d29d6a0 (patch)
tree9411ecdb57ada0630b3c747c99e852837ff7f25e /api/logic
parent69490535d02008535759681bf118e575cdfec55a (diff)
downloadMultiMC-ebb17cb5f8b4b7771c28bb0286846aa52d29d6a0.tar
MultiMC-ebb17cb5f8b4b7771c28bb0286846aa52d29d6a0.tar.gz
MultiMC-ebb17cb5f8b4b7771c28bb0286846aa52d29d6a0.tar.lz
MultiMC-ebb17cb5f8b4b7771c28bb0286846aa52d29d6a0.tar.xz
MultiMC-ebb17cb5f8b4b7771c28bb0286846aa52d29d6a0.zip
NOISSUE no means no.0.6.9
Diffstat (limited to 'api/logic')
-rw-r--r--api/logic/minecraft/MojangVersionFormat.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/logic/minecraft/MojangVersionFormat.cpp b/api/logic/minecraft/MojangVersionFormat.cpp
index 33d3c54c..0f6cf6a6 100644
--- a/api/logic/minecraft/MojangVersionFormat.cpp
+++ b/api/logic/minecraft/MojangVersionFormat.cpp
@@ -130,6 +130,10 @@ void MojangVersionFormat::readVersionProperties(const QJsonObject &in, VersionFi
{
Bits::readString(in, "id", out->minecraftVersion);
Bits::readString(in, "mainClass", out->mainClass);
+ if(out->mainClass.contains("forgewrapper") || out->mainClass.contains("zekerzhayard")) {
+ out->mainClass.clear();
+ out->addProblem(ProblemSeverity::Error, QObject::tr("Forge workarounds have no place in MultiMC."));
+ }
Bits::readString(in, "minecraftArguments", out->minecraftArguments);
if(out->minecraftArguments.isEmpty())
{