FIX: Crash when server is disaibling

This commit is contained in:
2026-07-10 21:45:52 +02:00
parent d3d9b1a238
commit 26e5376030
4 changed files with 45 additions and 44 deletions

View File

@@ -120,10 +120,12 @@ void ClientSideNetworkHandler::onDisconnect(const RakNet::RakNetGUID& guid)
level->removeEntity(p);
}
}
}
}
minecraft->setLevel(NULL);
#ifndef STANDALONE_SERVER
minecraft->gui.addMessage("Disconnected from server");
// TODO: screen with error
minecraft->screenChooser.setScreen(SCREEN_STARTMENU);
#endif
}