From b6345b1936e41adeb3fd01baad9b6394ba18a1d8 Mon Sep 17 00:00:00 2001 From: SevenToaster509 Date: Mon, 27 Apr 2026 08:00:26 +0100 Subject: [PATCH] fix: strange crash really bad way of fixing it but I don't think it'll cause issues. i get it when flying around a ton, maybe its to do with the biomes achievement --- Minecraft.World/Stats.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Minecraft.World/Stats.cpp b/Minecraft.World/Stats.cpp index 1e8f485e..71e211d1 100644 --- a/Minecraft.World/Stats.cpp +++ b/Minecraft.World/Stats.cpp @@ -553,5 +553,7 @@ void Stats::buildAdditionalStats() Stat *Stats::get(int key) { + if (statsById->find(key) == statsById->end()) + return nullptr; return statsById->at(key); }