From cfb54e65bd65c15b175e60467bd9bfe3a8fd1a20 Mon Sep 17 00:00:00 2001 From: Sally Knight Date: Sun, 29 Mar 2026 13:30:14 +0300 Subject: [PATCH] fix(jui): accidental ! in deprecated recipe check --- Minecraft.Client/UI/Screens/MerchantScreen.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Minecraft.Client/UI/Screens/MerchantScreen.cpp b/Minecraft.Client/UI/Screens/MerchantScreen.cpp index b069e89e8..f7e5a51e5 100644 --- a/Minecraft.Client/UI/Screens/MerchantScreen.cpp +++ b/Minecraft.Client/UI/Screens/MerchantScreen.cpp @@ -43,8 +43,10 @@ void MerchantScreen::init() { int xo = (width - imageWidth) / 2; int yo = (height - imageHeight) / 2; - nextRecipeButton = new TradeSwitchButton(1, xo + 120 + 27, yo + 24 - 1, true); - prevRecipeButton = new TradeSwitchButton(2, xo + 36 - 19, yo + 24 - 1, false); + nextRecipeButton = + new TradeSwitchButton(1, xo + 120 + 27, yo + 24 - 1, true); + prevRecipeButton = + new TradeSwitchButton(2, xo + 36 - 19, yo + 24 - 1, false); nextRecipeButton->active = false; prevRecipeButton->active = false; @@ -73,7 +75,7 @@ void MerchantScreen::renderBg(float a) { MerchantRecipe* activeRecipe = merchantMenu->getTradeContainer()->getActiveRecipe(); - if (activeRecipe != nullptr && !activeRecipe->isDeprecated()) { + if (activeRecipe != nullptr && activeRecipe->isDeprecated()) { blit(xo + 83, yo + 21, 212, 0, 28, 21); blit(xo + 83, yo + 51, 212, 0, 28, 21); }