From bd6586e45bb5cae00bb6449ec60689b39bb79c96 Mon Sep 17 00:00:00 2001 From: "George V." Date: Thu, 16 Apr 2026 19:47:11 +0300 Subject: [PATCH] fix: prevent crash when copying version when no ingame --- Minecraft.Client/Windows64/Windows64_Minecraft.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index 75cc8331..b56c1af1 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -2056,7 +2056,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, case 'B': std::wstring version = std::wstring(VER_BRANCHVERSION_STR_W) + L"/" + std::wstring(VER_PRODUCTVERSION_STR_W); Screen::setClipboard(version); - if (pMinecraft->gui) + if (pMinecraft->gui && app.GetGameStarted()) { const int primaryPad = ProfileManager.GetPrimaryPad(); pMinecraft->gui->addMessage(L"Copied version to clipboard", primaryPad);