mirror of
https://github.com/italicsjenga/valence.git
synced 2025-01-10 23:01:31 +11:00
Update resource pack link and add SHA-1 hash
This commit is contained in:
parent
e6f01e5e4d
commit
dcd4a2b5ed
|
@ -212,11 +212,11 @@ impl Config for Game {
|
|||
}
|
||||
}
|
||||
|
||||
/// Sends the resource pack prompt.
|
||||
fn set_example_pack(client: &mut Client<Game>) {
|
||||
client.set_resource_pack(
|
||||
"https://download843.mediafire.com/jbx81s8p7jig/dve0hxjaqecy7c6/example_pack.zip"
|
||||
.to_owned(), // TODO: change to the GitHub URL of /assets/example_pack.zip
|
||||
String::default(),
|
||||
"https://github.com/valence-rs/valence/raw/main/assets/example_pack.zip",
|
||||
"d7c6108849fb190ec2a49f2d38b7f1f897d9ce9f",
|
||||
false,
|
||||
None,
|
||||
);
|
||||
|
|
|
@ -1278,10 +1278,12 @@ impl<C: Config> Client<C> {
|
|||
);
|
||||
}
|
||||
|
||||
// Set action bar.
|
||||
if let Some(bar) = self.bar_to_send.take() {
|
||||
send_packet(&mut self.send, SetActionBarText { text: bar });
|
||||
}
|
||||
|
||||
// Send resource pack prompt.
|
||||
if let Some(p) = self.resource_pack_to_send.take() {
|
||||
send_packet(&mut self.send, p);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue