fix: Sword Blocking crashes the game when achievements enabled

This commit is contained in:
Byte
2026-07-09 07:09:45 +02:00
parent ef7d4658dc
commit 475f5ac496
+2
View File
@@ -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)