summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-04-07 23:23:54 +0200
committerGitHub <noreply@github.com>2020-04-07 23:23:54 +0200
commit6a21bf979c5ef4ad473971257f59fe9101397cd6 (patch)
treec8d2c94a59982b7a80a36542e77ae872158a6814 /src/World.cpp
parentFilter blocks to add to redstone sim's wake queue (#4621) (diff)
downloadcuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar.gz
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar.bz2
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar.lz
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar.xz
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.tar.zst
cuberite-6a21bf979c5ef4ad473971257f59fe9101397cd6.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 10cfc2047..ee521f254 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -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[]