summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/Mod.h
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/minecraft/Mod.h')
-rw-r--r--api/logic/minecraft/Mod.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/api/logic/minecraft/Mod.h b/api/logic/minecraft/Mod.h
index 96ee8174..ccab1867 100644
--- a/api/logic/minecraft/Mod.h
+++ b/api/logic/minecraft/Mod.h
@@ -1,4 +1,4 @@
-/* Copyright 2013-2017 MultiMC Contributors
+/* Copyright 2013-2018 MultiMC Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -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;
}