fix: misc bugs

fixes:
- f3 menu outside world border
- control type being affected by seemingly random oddities
- bedrock glitch in low y levels (thanks tranq)
This commit is contained in:
Fireblade
2026-07-17 19:20:05 -04:00
parent 43b3a70d4d
commit 338b1b2dd9
7 changed files with 20 additions and 16 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")");
}
}