fix: miscellaneous bugs + crashes (#52)

Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/52
This commit is contained in:
Fireblade
2026-07-18 00:22:17 +01:00
parent 3c73512a40
commit be92d90bcb
194 changed files with 342503 additions and 24 deletions
+5 -2
View File
@@ -1291,8 +1291,11 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
lines.push_back(L"CH S: " + std::to_wstring(chunkAt->getHeightmap(xChunkOffset, zChunkOffset)));
Biome *biome = chunkAt->getBiome(xChunkOffset, zChunkOffset, minecraft->level->getBiomeSource());
lines.push_back(L"Biome: " + biome->m_name + L" (" + std::to_wstring(biome->id) + L")");
if (biome != nullptr && biome->id >= 0)
lines.push_back(L"Biome: " + biome->m_name + L" (" + std::to_wstring(biome->id) + L")");
else
lines.push_back(L"Biome: Unknown");
lines.push_back(L"Difficulty: " + std::to_wstring(minecraft->level->difficulty) + L" (Day " + std::to_wstring(minecraft->level->getGameTime() / Level::TICKS_PER_DAY) + L")");
}
}