fix: stop elytra sound when going to mainmenu (#118)

This commit is contained in:
Necmi 2026-05-25 22:17:36 +03:00 committed by GitHub
parent ef0dad4ffc
commit ac3ece01c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4438,6 +4438,8 @@ void Minecraft::setLevel(MultiPlayerLevel *level, int message /*=-1*/, shared_pt
// 4J If we are setting the level to nullptr then we are exiting, so delete the levels
if( level == nullptr )
{
if (soundEngine) soundEngine->stopElytraSound();
if(levels[0]!=nullptr)
{
delete levels[0];