feat(jui): (re-)add transitional screens

Adds a new MessageScreen class to display custom messages and restores areas where ReceivingLevelScreen was used
This commit is contained in:
Sally Knight
2026-03-19 03:37:39 +03:00
parent 48b7d2f3a4
commit 7c3ba79f83
4 changed files with 56 additions and 7 deletions

View File

@@ -292,7 +292,7 @@ void ClientConnection::handleLogin(std::shared_ptr<LoginPacket> packet) {
minecraft->createPrimaryLocalPlayer(ProfileManager.GetPrimaryPad());
minecraft->player->dimension = packet->dimension;
// minecraft->setScreen(new ReceivingLevelScreen(this));
minecraft->setScreen(new ReceivingLevelScreen(this));
minecraft->player->entityId = packet->clientVersion;
std::uint8_t networkSmallId = getSocket()->getSmallId();
@@ -2636,7 +2636,7 @@ void ClientConnection::handleRespawn(std::shared_ptr<RespawnPacket> packet) {
// minecraft->player->dimension = packet->dimension;
minecraft->localplayers[m_userIndex]->dimension = packet->dimension;
// minecraft->setScreen(new ReceivingLevelScreen(this));
minecraft->setScreen(new ReceivingLevelScreen(this));
// minecraft->addPendingLocalConnection(m_userIndex, this);
#ifdef _XBOX