aboutsummaryrefslogtreecommitdiff
path: root/api/logic/minecraft/WorldList.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2021-02-06 15:58:03 +0100
committerPetr Mrázek <peterix@gmail.com>2021-02-06 15:58:03 +0100
commit1868e0ccf1beba675736c1d2c47579854110241e (patch)
tree125e38230b4708c2d0cf93ca52ab5caaf2be947f /api/logic/minecraft/WorldList.cpp
parentf8ca96a335acc6d37a2d41e44c2104255bce5e30 (diff)
downloadPrismLauncher-1868e0ccf1beba675736c1d2c47579854110241e.tar.gz
PrismLauncher-1868e0ccf1beba675736c1d2c47579854110241e.tar.bz2
PrismLauncher-1868e0ccf1beba675736c1d2c47579854110241e.zip
GH-3229 fix copy seed button not working for newer worlds
Added the `optional-bare` library and refactored NBT reading code to support this change.
Diffstat (limited to 'api/logic/minecraft/WorldList.cpp')
-rw-r--r--api/logic/minecraft/WorldList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/minecraft/WorldList.cpp b/api/logic/minecraft/WorldList.cpp
index 94b59da4..7bb9ab76 100644
--- a/api/logic/minecraft/WorldList.cpp
+++ b/api/logic/minecraft/WorldList.cpp
@@ -175,7 +175,7 @@ QVariant WorldList::data(const QModelIndex &index, int role) const
return world.name();
case GameModeColumn:
- return gameTypeToString(world.gameType());
+ return world.gameType().toTranslatedString();
case LastPlayedColumn:
return world.lastPlayed();