diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-25 08:18:42 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-25 08:18:42 +0200 |
commit | f8c5cee98265f393cb07a97e2d1d3b38cf26400f (patch) | |
tree | 5214dd749cf100b5c93b9fea42b67216eeae2674 /api | |
parent | c82042dcfa79b4047d3663db3a9d82ac254b04ff (diff) | |
download | MultiMC-f8c5cee98265f393cb07a97e2d1d3b38cf26400f.tar MultiMC-f8c5cee98265f393cb07a97e2d1d3b38cf26400f.tar.gz MultiMC-f8c5cee98265f393cb07a97e2d1d3b38cf26400f.tar.lz MultiMC-f8c5cee98265f393cb07a97e2d1d3b38cf26400f.tar.xz MultiMC-f8c5cee98265f393cb07a97e2d1d3b38cf26400f.zip |
NOISSUE ignore the 'Example Mod' mod name, use filename instead
Diffstat (limited to 'api')
-rw-r--r-- | api/logic/minecraft/Mod.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/logic/minecraft/Mod.h b/api/logic/minecraft/Mod.h index 96ee8174..34022ddd 100644 --- a/api/logic/minecraft/Mod.h +++ b/api/logic/minecraft/Mod.h @@ -58,7 +58,8 @@ public: } QString name() const { - if(m_name.trimmed().isEmpty()) + QString name = m_name.trimmed(); + if(name.isEmpty() || name == "Example Mod") { return m_mmc_id; } |