fix: various crashes

This commit is contained in:
Fireblade
2026-06-30 01:54:08 -04:00
parent 312826de24
commit c1f2096ea6
4 changed files with 24 additions and 9 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ void BeaconRenderer::render(shared_ptr<TileEntity> _beacon, double x, double y,
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glDepthMask(true);
double currentYBase = 0;
double currentYBase = 1;
for (const auto& seg : segments) {
int r = (int)(seg.r * 255);
int g = (int)(seg.g * 255);
@@ -163,7 +163,7 @@ void BeaconRenderer::render(shared_ptr<TileEntity> _beacon, double x, double y,
glDepthMask(false);
currentYBase = 0;
currentYBase = 1;
for (const auto& seg : segments) {
int r = (int)(seg.r * 255);
int g = (int)(seg.g * 255);
@@ -135,6 +135,7 @@ void UIScene_HelpAndOptionsMenu::handleReload()
{
// We should show the reinstall menu
app.DebugPrintf("Reinstall Menu required...\n");
removeControl( &m_buttons[BUTTON_HAO_REINSTALL], false);
}
else
{
+11 -2
View File
@@ -565,8 +565,17 @@ void XMemDestroyDecompressionContext(XMEMDECOMPRESSION_CONTEXT Context)
//#ifndef __PS3__
#if !(defined _DURANGO || defined __PS3__ || defined __ORBIS__ || defined __PSVITA__)
DWORD XGetLanguage() { return 1; }
DWORD XGetLocale() { return 0; }
DWORD XGetLanguage() {
unsigned char lang = app.GetMinecraftLanguage(0);
if (lang != 0) return lang;
return 1;
}
DWORD XGetLocale() {
unsigned char loc = app.GetMinecraftLocale(0);
if (loc != 0) return loc;
return 0;
}
DWORD XEnableGuestSignin(BOOL fEnable) { return 0; }
#endif