Update resource pack link and add SHA-1 hash

This commit is contained in:
Ryan 2022-09-17 19:40:26 -07:00
parent e6f01e5e4d
commit dcd4a2b5ed
2 changed files with 5 additions and 3 deletions

View file

@ -212,11 +212,11 @@ impl Config for Game {
} }
} }
/// Sends the resource pack prompt.
fn set_example_pack(client: &mut Client<Game>) { fn set_example_pack(client: &mut Client<Game>) {
client.set_resource_pack( client.set_resource_pack(
"https://download843.mediafire.com/jbx81s8p7jig/dve0hxjaqecy7c6/example_pack.zip" "https://github.com/valence-rs/valence/raw/main/assets/example_pack.zip",
.to_owned(), // TODO: change to the GitHub URL of /assets/example_pack.zip "d7c6108849fb190ec2a49f2d38b7f1f897d9ce9f",
String::default(),
false, false,
None, None,
); );

View file

@ -1278,10 +1278,12 @@ impl<C: Config> Client<C> {
); );
} }
// Set action bar.
if let Some(bar) = self.bar_to_send.take() { if let Some(bar) = self.bar_to_send.take() {
send_packet(&mut self.send, SetActionBarText { text: bar }); send_packet(&mut self.send, SetActionBarText { text: bar });
} }
// Send resource pack prompt.
if let Some(p) = self.resource_pack_to_send.take() { if let Some(p) = self.resource_pack_to_send.take() {
send_packet(&mut self.send, p); send_packet(&mut self.send, p);
} }