1
0

Initial resource pack support (#4622)

This commit is contained in:
Mat
2020-04-08 00:23:54 +03:00
committed by GitHub
parent 19ad96561c
commit 6a21bf979c
18 changed files with 146 additions and 4 deletions

View File

@@ -3561,6 +3561,13 @@ void cWorld::AddQueuedPlayers(void)
Client->SendPlayerMoveLook();
Client->SendHealth();
Client->SendWholeInventory(*Player->GetWindow());
// Send resource pack
auto ResourcePackUrl = cRoot::Get()->GetServer()->GetResourcePackUrl();
if (!ResourcePackUrl.empty())
{
Client->SendResourcePack(ResourcePackUrl);
}
}
} // for itr - PlayersToAdd[]