Skip to content

Commit dea44b7

Browse files
committed
change "This account does not own Minecraft" message so users know to use Ely.by/Offline accounts instead
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
1 parent 213c7f2 commit dea44b7

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

launcher/LaunchController.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ bool LaunchController::askPlayDemo() const
220220
QMessageBox box(m_parentWidget);
221221
box.setWindowTitle(tr("Play demo?"));
222222
QString text = m_accountToUse
223-
? tr("This account does not own Minecraft.\nYou need to purchase the game first to play the full version.")
223+
? tr("This account does not own Minecraft.\nIf you do not own the game, you must use an Ely.by or Offline account")
224224
: tr("No account was selected for launch.");
225225
text += tr("\n\nDo you want to play the demo?");
226226
box.setText(text);

launcher/PineconeNetworkCheck.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ PineconeNetworkCheck::PineconeNetworkCheck(QNetworkAccessManager* network)
2929
m_network = network;
3030

3131
static auto s_urlToResult = std::array{
32-
std::pair { QUrl("https://pineconemc.ru"), Result::UsePrimary },
33-
std::pair { QUrl("https://pineconemc.github.io"), Result::UseNewFallback },
34-
std::pair { QUrl("https://elyprismlauncher.github.io"), Result::UseOldFallback },
32+
std::pair{ QUrl("https://pineconemc.ru"), Result::UsePrimary },
33+
std::pair{ QUrl("https://pineconemc.github.io"), Result::UseNewFallback },
34+
std::pair{ QUrl("https://elyprismlauncher.github.io"), Result::UseOldFallback },
3535
};
3636
for (auto& [url, result] : s_urlToResult) {
3737
launchRequest(url, result);

launcher/PineconeNetworkCheck.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@ class PineconeNetworkCheck : public QObject {
2424
Q_OBJECT
2525

2626
public:
27-
enum class Result : std::uint8_t {
28-
UsePrimary,
29-
UseNewFallback,
30-
UseOldFallback,
31-
Offline
32-
};
27+
enum class Result : std::uint8_t { UsePrimary, UseNewFallback, UseOldFallback, Offline };
3328
Q_ENUM(Result)
3429

3530
explicit PineconeNetworkCheck(QNetworkAccessManager* network);

0 commit comments

Comments
 (0)