From ecc6f0d549bb0142039de266bd2aa8d4c02315b4 Mon Sep 17 00:00:00 2001 From: Sally Knight Date: Mon, 16 Mar 2026 17:25:06 +0300 Subject: [PATCH] fix(achievements): restore achievement popup display Was removed by the dev merge --- Minecraft.Client/Player/LocalPlayer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Minecraft.Client/Player/LocalPlayer.cpp b/Minecraft.Client/Player/LocalPlayer.cpp index 2f8c1911f..4689b25f7 100644 --- a/Minecraft.Client/Player/LocalPlayer.cpp +++ b/Minecraft.Client/Player/LocalPlayer.cpp @@ -709,10 +709,12 @@ void LocalPlayer::awardStat(Stat* stat, byteArray param) { // storage device, so needs a primary player, and the player may not // have been a primary player when they first 'got' the award so let the // award manager figure it out - // if (!minecraft->stats[m_iPad]->hasTaken(ach)) + if (!minecraft->stats[m_iPad]->hasTaken(ach)) { // 4J-PB - Don't display the java popup - // minecraft->achievementPopup->popup(ach); +#ifdef ENABLE_JAVA_GUIS + minecraft->achievementPopup->popup(ach); +#endif // 4J Stu - Added this function in the libraries as some // achievements don't get awarded to all players e.g. Splitscreen