Merge branch 'dev' into refactor/untangle-assets-mess

This commit is contained in:
Tropical
2026-03-09 01:20:45 -05:00
3 changed files with 8 additions and 2 deletions

View File

@@ -630,7 +630,11 @@ void CMinecraftApp::InitGameSettings()
C4JStorage::PROFILESETTINGS *pProfileSettings=StorageManager.GetDashboardProfileSettings(i);
// 4J-PB - don't cause an options write to happen here
SetDefaultOptions(pProfileSettings,i,false);
#else
// Linux (and any other platform): profile data is zero-initialised, so explicitly apply defaults
C_4JProfile::PROFILESETTINGS *pProfileSettings=ProfileManager.GetDashboardProfileSettings(i);
memset(pProfileSettings,0,sizeof(C_4JProfile::PROFILESETTINGS));
SetDefaultOptions(pProfileSettings,i);
#endif
}
}

View File

@@ -311,6 +311,8 @@ void ItemInHandRenderer::renderItem3D(Tesselator *t, float u0, float v0, float u
void ItemInHandRenderer::render(float a)
{
if (!mc->player || !mc->level) return;
float h = oHeight + (height - oHeight) * a;
std::shared_ptr<Player> player = mc->player;