From 475f5ac4963ab39be053285f1d617df480485fe8 Mon Sep 17 00:00:00 2001 From: Byte Date: Thu, 9 Jul 2026 07:09:45 +0200 Subject: [PATCH] fix: Sword Blocking crashes the game when achievements enabled --- Minecraft.World/CommonStats.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Minecraft.World/CommonStats.cpp b/Minecraft.World/CommonStats.cpp index 88b5c23a..e5cfa8cc 100644 --- a/Minecraft.World/CommonStats.cpp +++ b/Minecraft.World/CommonStats.cpp @@ -109,9 +109,11 @@ Stat *CommonStats::get_itemsUsed(int itemId) #if (defined _EXTENDED_ACHIEVEMENTS) && (!defined _XBOX_ONE) // 4J-JEV: I've done the same thing here, we can't place these items anyway. if (itemId == Item::porkChop_cooked_Id) return Stats::blocksPlaced[itemId]; + return nullptr; #endif if (itemId == Item::porkChop_cooked_Id) return Stats::blocksPlaced[itemId]; + return nullptr; } Stat *CommonStats::get_itemsBought(int itemId)